Renamed $sortby to $sortBy in sortByKey