.3y285ir: Improvements to _sort

Added multi-sort, finally.  And rewrote to be much more efficient: the
new design only runs the QL processing over each element a minimal
number of times.

Moved unit tests to CollectionsTests, and added a multi-sort test.