title: How can I sort my JSON array?
body: <p>How to output this JSON element in correct order by it's value?</p>
  
  <pre><code>var json = { 
      "message": {
          "90": "Adidas", 
          "2": "Armani", 
          "89": "Casio", 
          "1": "Diesel", 
          "72": "DKNY", 
          "88": "Fossil", 
          "4": "Hamilton", 
          "6": "Luminox", 
          "99": "Michael Kors", 
          "968": "Mont Blanc Pens", 
          "3": "Nixon", 
          "959": "Nooka", 
          "92": "Seiko", 
          "91": "Tendence", 
          "7": "Tissot" 
      } 
  };
  
  var str = '';
  for (var i in json.message) {
      str += json.message[i]+'\n';
  }
  alert(str);
  </code></pre>
  
  <p><strong>it alerts in the below order -</strong></p>
  
  <blockquote>
    <p>Diesel<br>
        Armani<br>
        Nixon<br>
        Hamilton<br>
        Luminox<br>
        DKNY<br>
        Fossil<br>
        Casio<br>
        Adidas<br>
        Tendence<br>
        Seiko<br>
        Michael Kors<br>
        Nooka<br>
        Mont Blanc Pens  </p>
  </blockquote>
  
  <p><em><strong>But I want it in below order</em></strong> </p>
  
  <blockquote>
    <p>Adidas<br>
        Armani<br>
        Casio<br>
        Diesel<br>
        DKNY<br>
        Fossil<br>
        Hamilton<br>
        Luminox<br>
        Michael Kors<br>
        Mont Blanc Pens<br>
        Nixon<br>
        Nooka<br>
        Seiko<br>
        Tendence<br>
        Tissot   </p>
  </blockquote>
  
  <p>Can any one suggest me what approach I should adopt to get in correct order?</p>
  
  <p>Any help would be greatly appreciated!</p>