When giving a custom comparison in std::sort use < as operator (not <=).

This fixes crashes in debug mode (especially in some tests) in which case the
runtime checks this rule and quits execution on violation.
Merge pull request #471 from bilke/sort-crash

When giving a custom comparison in std::sort use < as operator (not <=).