Use a stable sort.