title: Arrange array of IPs by specificity
body: <p>I have an array of IP subnets, and would like to rearrange the array by Subnet specificity. </p>
  
  <p>For example I have array below:</p>
  
  <pre><code>var array = [['10.0.0.0/8', 'test1'], ['10.155.220.0/24', 'test2'], ['10.155.200.0/24', 'test3']];
  </code></pre>
  
  <p>Now I want to rearrange it so it looks like this:</p>
  
  <pre><code>var array = [['10.155.220.0/24', 'test2'], ['10.155.200.0/24', 'test3'], ['10.0.0.0/8', 'test1']];
  </code></pre>
  
  <p>Basically, 10.155.220.0/24 is a more specific subnet than 10.0.0.0/8. So I want to know if I can arrange them by specificity, more specific subnet on on first place. Ultimately if such thing is not doable, can I arrange them just by looking at the /24 and /8, from higher to lower number.</p>
  
  <p>Cheers</p>