Ar SortEditor
From GECK
A function added by the JohnnyGuitar NVSE Plugin.
Contents
Description
Sorts elements of an array of forms (References or Base Forms) alphabetically (or reverse-alphabetically) using their Editor IDs, and returns a new array containing the elements in sorted order.
Syntax
(array) Ar SortEditor source:formArray sortReverse:bool
Example
array_var aOriginal array_var aSorted let aOriginal := Ar_List SunnyREF, EasyPeteRef, GSChetRef let aSorted := Ar_SortEditor aOriginal ; EasyPeteRef, GSChetRef, SunnyREF let aSorted := Ar_SortEditor aOriginal, 1 ; SunnyREF, GSChetRef, EasyPeteRef