title: Order list of Json object by value using python
body: <p>I have this Json object that I created using json dumps:</p>
  
  <pre><code>  data.append({"word":word,'list':list , "count":count})
  
    value=json.dumps({"data":data })
  
   {"data": [{"count": 1, "word": "bob", "list": [1]}, {"count": 10, "word": "lola", "list": [2,7]}]}
  </code></pre>
  
  <p>I want to order this object according to "count", and have instead this output:</p>
  
  <pre><code> {"data": [{"count": 1O, "word": "lola", "list": [2,7]}, {"count": 1, "word": "bob", "list": [2]}]}
  </code></pre>
  
  <p>Any help on how to order this type of objects? I have already tried this solution: <a href="https://stackoverflow.com/questions/24076832/how-to-get-sorted-list-inside-a-dictionary-with-json-dumps">How to get sorted list inside a dictionary with json.dumps()</a> from Martijn Pieters, but it orders the list according to 'list' not count.</p>
  
  <p>Thank you in advance</p>