RosettaCodeData/Task/Sort-stability/Lasso/sort-stability-1.lasso

9 lines
265 B
Plaintext

//Single param array:
array->sort
//An array of pairs, order by the right hand element of the pair:
with i in array order by #i->second do => { … }
//The array can also be ordered by multiple values:
with i in array order by #i->second, #i->first do => { … }