title: How to order items inside array based on object property in JS
body: <p>I have an array of objects:</p>
  <pre><code>[
  {
  Name:
  likes:[]
  ...
  }
  ]
  </code></pre>
  <p>I need to order first objects with no likes where likes is undefined, then objects which has only 1 item inside likes array then other objects which have more items inside likes array. How can be it done correctly?</p>