Hello all,

I found the *sortPartition()* function in dataset for ordering the dataset
elements as below:
DataSet<Tuple2<Integer, String>> data;
DataSet<Tuple2<Integer, String>> partitionedData = data.sortPartition(0,
Order.DESCENDING);

But I couldn't find any methods to sort the elements in datastream.
DataStream<Tuple2<Integer, String>> data;
DataStream<Tuple2<Integer, String>> partitionedData =data.??

What could be the way to achieve sorting in datastream elements.


Best Regards,
Subash Basnet

Reply via email to