title: Sort objects by count
body: <p>I'm working with an api which where I get data with <code>Invoke-RestMethod</code>,
  the data is converted into objects from json and I do the following.</p>
  
  <pre><code>$P = 0
  $Store = New-Object System.Collections.Generic.List[System.Object]
  $Get = Invoke-RestMethod -Method Get -Uri "https://someurl/$P"
  
  #each page i store in a variable until i get all pages
  $Store.Add( $Get.Objects)
  
  #then i output the results
  write $Store | Format-Table Name, Adres -AutoSize
  
  Name         Adres
  -----        ------
  A             A
  B             B
  C             C
  C             D
  C             E
  D             F
  D             G
  D             H
  A             I
  C             J
  </code></pre>
  
  <p>How do I query the results so that I can get an overview of the names which are linked to the most adresses and then put into order.</p>
  
  <pre><code>Name         Adres
  -----        ------
  C             C
  C             D
  C             E
  C             J
  D             F
  D             G
  D             H
  A             A
  A             I
  B             B
  </code></pre>