title: Export dictionary to a JSON, sorted by keys
body: <p>I have a dictionary</p>
  
  <pre><code>Dictionary&lt;string, object&gt;
  </code></pre>
  
  <p>(the values are either string, int or double).
  I export the dictionary to a JSON file:</p>
  
  <pre><code>JsonConvert.SerializeObject(myDict);
  </code></pre>
  
  <p>I want the saved JSON to be sorted by keys.</p>