4.3.2.9. Sort functions

The following functions support sorting operations.

sort( list, precedes )

Returns a list of the same elements but ordered according to the sorting function.

表4.65 Parameters

ParameterType

list

list

precedes

function

Example

sort( list: [3,1,4,5,2], precedes: function(x,y) x < y ) = [1,2,3,4,5]