groupByKeyAndSortValues operation