extra: remove sort in favour of the std method.

Fixes #9676.
std::vec: use a trait for the comparison function in .sort.

This provides static dispatch for a plain `a <= b` sort.