change RDD takeOrdered instead