Background for Skyrim SE
Member of the DynamicStringArrays script
string[]functionSort(string[]akArray, boolAscending=true, boolDirect=true)

Description

Documentation Comment

Sort the array from smallest to largest or vice versa.
Note that if Direct == true (default) this affects the passed in akArray directly.
So no need to do MyIntArray[] = SortIntArray(MyIntArray)
Can just do: SortIntArray(MyIntArray)
If Direct == false, it first copy's the array, sorts the copied array and returns the copied array so the passed in akArray is unaffected.
If Direct == false, passed in akArray must be less than or equal to 128 elements in length.


Parameters

  1. string[]akArray

  2. boolAscending=true

  3. boolDirect=true


Examples

Auto-Generated Example

string[] myStringArray__akArray
bool myBool__Ascending
bool myBool__Direct

string[] returnedValue = myDynamicStringArrays__toCallFunctionOn.Sort(myStringArray__akArray, myBool__Ascending, myBool__Direct)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.