sortByKey.png sortByKey ShuffledRDD,做shuffle read,将相同的key拉到一个partition中来mapPartitions,对每个partitions内的key进行全局的排序