I have a Spark RDD whose entries I want to sort in an organized manner. Let's say the entry is a tuple with 3 elements (name,phonenumber,timestamp)
. I want to sort the entries first depending on the value of phonenumber
and then depending on the value of timestamp
while respecting and not changing the sort that was done based on phonenumber
. (so timestamp
only re-arranges based on the phonenumber
sort). Is there a Spark function to do this?
(I am using Spark 2.x with Scala)