Ar Sort
This article has been added to the Wiki by CSbot, an automated WikiBot. If you notice anything wrong with this page, please notify DragoonWraith, this bot's operator, by adding a comment to the end of User talk:DragoonWraith. If this article seems to be correct, then you can help the Wiki by removing this message, by editing this page and deleting the {{BotAddedPage}} template from the top of it. Thank you.
A function added by the Oblivion Script Extender.
Syntax:
(sortedArray:Array) ar_Sort toSort:array sortDescending:bool
Attempts to sort the elements of an array in ascending or descending order and returns a new Array containing the elements in sorted order (keys associated with the elements are lost). In order to be sorted all elements of an array must be of the same type (strings, numbers, or objects). If this condition is not met an empty Array is returned. Strings are sorted alphabetically and case-insensitively, numbers are sorted numerically, and objects are sorted by formID. By default the elements are sorted in ascending order.