title: How to sort a json file with spark in python?
body: <p>I have a json file as following and I would like to sort it using rdd. How would I do it? </p>
  
  <p>I tried the following but it does not sort the words :(</p>
  
  <pre><code>rdd = self.sc.textFile(self.dic_path).sortByKey()
  
  
  {
    "biennials": 0, 
    "tripolitan": 0, 
    "oblocutor": 0, 
    "leucosyenite": 0, 
    "chilitis": 0, 
    "fabianist": 0, 
    "diazeutic": 0, 
    "alible": 0, 
    "woods": 4601, 
    "preadjournment": 0, 
    "spiders": 0, 
    "fabianism": 0, 
  }
  </code></pre>