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

9 lines
265 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
//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 => { … }