title: Sorting a JSON file by a certain key
body: <p>I am coding in Python. </p>
  
  <p>I have a <code>carV.json</code> file with content</p>
  
  <pre><code>{"CarValue": "59", "ID": "100043" ...}
  {"CarValue": "59", "ID": "100013" ...}
  ...
  </code></pre>
  
  <p>How can I sort the file content into</p>
  
  <pre><code>{"CarValue": "59", "ID": "100013" ...}
  {"CarValue": "59", "ID": "100043" ...}
  ...
  </code></pre>
  
  <p>using the "ID" key to sort?</p>
  
  <p>I tried different methods to read and perform the sort, but always ended up getting errors like "no sort attribute" or ' "unicode' object has no attribute 'sort'".</p>