sortByKey renamed appropriately to sortByValue