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

This provides static dispatch for a plain `a <= b` sort.
std::vec: add a sugary .sort() method for plain Ord sorting.

This moves the custom sorting to `.sort_by`.