title: How to sort (reverse) object of jsonparse?
body: <p>I have object <code>{"5":"5","4":"4","3":"3","2":"2","1":"1","-1":"P1",-2":"P2"}</code>
  And use this function to parse elements:</p>
  
  <pre><code>function floormake(inobj) {
      var levels = '';
      var obj = JSON.parse(inobj);
      levels += '&lt;ul&gt;';
      Object.keys(obj).sort(-1).forEach(function (key) {
          levels += '&lt;li&gt;' + obj[key] + '&lt;/li&gt;';
      });
      levels += '&lt;/ul&gt;';
      return levels;
  }
  </code></pre>
  
  <p>But result alway sorting by number: -1, -2, 1, 2 etc. BUT i need <strong>reverse sorting</strong>: 5, 4, 3, 2, 1,
  sort(-1) - doesn't work</p>