preserve key in sortByKey