Stable sort.