title: Javascript Sort key value pair object based on value
body: <p>I have an object like below. Trying to rearrange it in ascending order based on value. Similar to Javascript array sort method.</p>
  
  <pre><code>    var masterList = {
      "1": "google",
      "2": "yahoo",
      "3": "msn",
      "4": "stackoverflow",
      "5": "github",
      "6": "jsfiddle",
      "7": "amazon",
      "8": "ebay"
  }
  </code></pre>
  
  <p>Please let me know the better solution...</p>