title: How would i loop through my JSON variable and sort them by the size of on af the variables , and keep the other tags with it
body: <p>I need to loop through my JSON file, where info is stored in user id's, like this.</p>
  
  <pre><code>{
    "350707981178109964":{"wins":1,"losses":0,"rank":4,"username":"TheeSniper95"},
    "426459326031593482":{"wins":0,"losses":0,"rank":1,"username":"Ding Dang Test"},
    "267752826623492102":{"wins":0,"losses":0,"rank":1,"username":"MrDooba"}
  }
  </code></pre>
  
  <p>The long number is the user id accessed through <code>member.id</code> or <code>message.author.id</code> using the discord.js package.</p>
  
  <p>I need to grab the user and put them at the top of an array with their user names and wins, the higher their wins the higher they are on the leaderboard.
  But I have had trouble keeping the username with the wins. And getting the user id to access it and sort through all of them and then save it in a variable.</p>