Changes

Jump to navigation Jump to search
No change in size ,  10:34, 11 October 2016
sort(reverse(1 to 3)) (: yields 1, 2, 3 :),
reverse(sort(1 to 3)) (: returns the sorted order in descending order :),
sort((3, -2, 1), (), abs#1) (: yields 1, -2, 3 :),
sort((1,2,3), (), function($x) { -$x }) (: yields 3, 2, 1 :),
sort((1, 'a')) (: yields an error, as strings and integers cannot be compared :)
</pre>
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu