title: Unable to do sort on arrays
body: <p>I am trying to sort an array of jquery objects by text. </p>
  
  <pre><code>var $divs = $("#"+menu +"&gt; div");
  var numOrderedDivs = $divs.sort(function (a, b) {
      return $(a).text() &gt; $(b).text();
  });
  $("#"+menu).html(numOrderedDivs);
  </code></pre>
  
  <p>However I am seeing no changes</p>
  
  <p><a href="https://i.stack.imgur.com/OzR2K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OzR2K.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/9XZCQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9XZCQ.png" alt="enter image description here"></a></p>