We finally got a native sort function (Thanks guys! Much appreciated).
Unfortunately we can't sort an array of mixed arrays; a rather common use-case for custom data-structures of any kind. That's why we also need the command sortBy. Proposed syntax:
<array> sortBy [<code>, <boolean>];
...where <array> is the array to be sorted, <code> is a selector, is given an element in <array> and returns the value that should be respected for the comparison. <boolean> indicates ascending (true) or descending (false) order.
Implementation details: in the worst case, you guys could implement an indirect sort for us, by building up a new array behind the scenes, based on <code> first (...just in case you would need a selector in a more formal/strict/deterministic/non-code way for a direct comparison sort).