Renamed $sortKeySelector to $compareKeySelector