Use a stable sort.

This enables multi-column sorting.