How can I convert Spark\'s sortBy in the code sample below to Apache Flink?
val data: Dataset[Array[Int]] = // [...] va