This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
new:array [2018/02/21 13:31] – korshun | new:array [2018/02/21 13:57] – korshun | ||
---|---|---|---|
Line 2: | Line 2: | ||
<note warning> | <note warning> | ||
+ | |||
+ | Array sorting and shuffling functions use script names as callbacks. | ||
===== SortArray ===== | ===== SortArray ===== | ||
Line 13: | Line 15: | ||
The sorted array may actually be an array of objects with multiple fields. '' | The sorted array may actually be an array of objects with multiple fields. '' | ||
+ | |||
+ | <note important>'' | ||
+ | |||
+ | Maximum element count may depend on callback complexity and the initial state of the array.</ | ||
Example: sorting a simple array of numbers: | Example: sorting a simple array of numbers: |