Skip to content

llListSort

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

Returns the specified list, sorted 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.
Ascending (number)
Boolean. TRUE = result in ascending order, FALSE = result in descending order.

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

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