Support sorting of keys