Skip to content

llListSortStrided

function ll.ListSortStrided(ListVariable: {any}, Stride: number, Sortkey: number, Ascending: number): {any}

Returns the specified list, sorted by the specified element into blocks of stride in ascending order (if Ascending is TRUE, otherwise descending). Note that sort only works if the first entry of each block is the same datatype.

Parameters
ListVariable ({any})
List to sort.
Stride (number)
Stride length.
Sortkey (number)
The zero based element within the stride to use as the sort key
Ascending (number)
Boolean. TRUE = result in ascending order, FALSE = result in descending order.

Add example usage here showing SLua/Luau syntax with ll.ListSortStrided().

Add additional notes, caveats, or tips specific to using this function in SLua/Luau.