title: Is there a simple way to sort a typescript dictionary?
body: <p>I have some code that has populated a typescript dictionary.</p>
  
  <pre><code>var dictionaryOfScores: {[id: string]: number } = {};
  </code></pre>
  
  <p>Now that I have it I would like to sort it by the value (the number).</p>
  
  <p>This dictionary could be quite large so I am hoping there is a solution to handle it in-place.</p>
  
  <p>I've seen that there is a typescript-collections package that could fit my needs but I'm hoping there is a simple solution that doesn't require me to include another library.</p>
  
  <p><a href="https://stackoverflow.com/questions/5467129/sort-javascript-object-by-key">Sort JavaScript object by key</a> describes a plain javascript method that could be used to sort this TypeScript object, but it makes a copy, and it doesn't specifically address the TypeScript dictionary.</p>