public < K > SortPartitionOperator < T > sortPartition ( KeySelector < T , K > keyExtractor , Order order ) { final TypeInformation < K > keyType = TypeExtractor . getKeySelectorTypes ( keyExtractor , getType ( ) ) ; return new SortPartitionOperator <> ( this , new Keys . SelectorFunctionKeys <> ( clean ( keyExtractor ) , getType ( ) , keyType ) , order , Utils . getCallLocationName ( ) ) ; }
Locally sorts the partitions of the DataSet on the extracted key in the specified order . The DataSet can be sorted on multiple values by returning a tuple from the KeySelector .