title: Sorting list of elements in JQuery
body: <p>I have a list of elements that I get using JQuery.</p>
  
  <pre><code>var $self = $(this);
  var $fields = $('.identifier-controls', $self);
  </code></pre>
  
  <p>This list is the list of elements that need to be manipulated in some way when the control renders.  Each element in the list of $fields contains a data attribute called "data-order".  This attribute tells me what order I should arrange the elements with in the control (ah requirements).  The order does not have to be in direct linear order (meaning that the first control can have an attribute value of 10 and the next one 15 and the next one 17 etc.  They just need to appear in the asc order.  Is there a simple way to achieve this? All the ways that I can come up with seem a bit over complicated.</p>