title: how to sort xml data using javascript?
body: <p>This is my sample xml </p>
  
  <pre><code>&lt;markers&gt;
      &lt;marker location_id="1" title="test 1" distance="0.0832"/&gt;
      &lt;marker location_id="2" title="test 2" distance="3.1852"/&gt;
      &lt;marker location_id="3" title="test 3" distance="4.3761"/&gt;
      &lt;marker location_id="4" title="test 4" distance="3.3761"/&gt;
  &lt;/markers&gt;
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>var entries = xml.documentElement.getElementsByTagName('marker');
  </code></pre>
  
  <p>How can I sort this entries by distance, ascending order ? I want to do it using Javascript.</p>