Stable sorting of vectors

Needed for the temporal data type.