title: Sorting a JavaScript Object by specific property value
body: <p>If I have a JavaScript object such as:</p>
  
  <pre><code>var currencies= {
    "EUR": 100, 
    "CHF": 15,
    "GPB": 75, 
    "JPN": 116, 
    "EUR": 12, 
    "JPN": 15, 
    "USD": 55, 
    "CHF": 22,
    "USD": 100, 
  };
  </code></pre>
  
  <p>Is there a way to sort them in this specific order?</p>
  
  <pre><code>var currencies= {
    "EUR": 12, 
    "EUR": 100, 
    "USD": 55, 
    "USD": 100, 
    "GPB": 75, 
    "CHF": 15,
    "CHF": 22,
    "JPN": 15, 
    "JPN": 116, 
  };
  </code></pre>