OsListSortInPlace

From OpenSimulator

Revision as of 17:35, 1 June 2021 by Ubit (Talk | contribs)

Jump to: navigation, search
osListSortInPlace(list src, integer stride, integer ascending)
Identical to llListSort but does the sort on the original list, so using less memory.
  • src: the list to sort
  • stride: the list stride.
  • ascending: it it is 1, sort in ascending order. If it is any other value, sort in descendent order.

- Does nothing if the list length is not a multiple of stride. - The sort considers the elements that are at indexes multiple of stride the other elements between those multiples are just copied around.

Threat Level This function does not do a threat level check
Permissions Use of this function is always allowed by default
Extra Delay 0 seconds
Notes
This function was added in 0.9.2


Personal tools
General
About This Wiki