title: PySpark - sortByKey() method to return values from k,v pairs in their original order
body: <p>I need to be able to return a list of values from (key,value) pairs from an RDD while maintaining original order.</p>
  
  <p>I've included my workaround below but I'd like to be able to do it all in one go. </p>
  
  <p>Something like:</p>
  
  <pre><code>myRDD = [(1, 2582), (3, 3222), (4, 4190), (5, 2502), (6, 2537)]
  values = myRDD.&lt;insert PySpark method(s)&gt;
  print values
  &gt;&gt;&gt;[2582, 3222, 4190, 2502, 2537]
  </code></pre>
  
  <p>My workaround:</p>
  
  <pre><code>myRDD = [(1, 2582), (3, 3222), (4, 4190), (5, 2502), (6, 2537)]
  
  values = []
  for item in myRDD.sortByKey(True).collect():
                   newlist.append(item[1])
  print values
  &gt;&gt;&gt;[2582, 3222, 4190, 2502, 2537]
  </code></pre>
  
  <p>Thanks!</p>