title: Json sort is not working
body: <p>my json looks like this:</p>
  
  <pre><code>[
    {
      "cash": 100,
      "uid": "LHy2qRGaf3nkWQgU4axO",
      "name": "test2"
    },
    {
      "cash": 1000000,
      "uid": "01wFhCSlnd9vSDY4NIkx",
      "name": "test"
    },
    {
      "cash": 500,
      "uid": "PBOhla0jPwI4PIeNmmPg",
      "name": "test3"
    }
  ]
  </code></pre>
  
  <p>I'm trying to sort the json by the user cash. 
  So what I did is :</p>
  
  <pre><code>    var objArr = []; // the json array
  
      function compare(a, b) {
          console.log("a" + a.cash);
          console.log("b" + b.cash);
          if (a.cash &gt; b.cash)
              return -1;
          if (a.cash &lt; b.cash)
              return 1;
          return 0;
      }
  
     var obj = objArr.sort(compare);
     response.send(obj);
  </code></pre>
  
  <p>but the response that came back is not ordered. </p>
  
  <p>how can I fix it?
  thanks</p>