title: load images in ascending order by id
body: <p>I am reading Images by json . i have total 16 images .. i want to read images by Ascending order like . id1,id2,id3 and so on .</p>
  
  <p>Currently they are loading in descending order </p>
  
  <pre><code>$(document).ready(function() {
      var globe;
      /*   Reading the data from XML file*/
  
      $.ajax({
          type: "GET",
          url: "photos.xml",
          dataType: "xml",
          success: function(xml) {
              $(xml).find('item').each(function() {
                  var path = $(this).attr('path');
                  var width = $(this).attr('width');
                  var height = $(this).attr('height');
                  var id = $(this).attr('id');
                  var alt = $(this).attr('alt');
                  var longdesc = $(this).find('longdesc').text();
                  var description = $(this).find('desc').text();
                  $('#myImageFlow').prepend('&lt;img src="' + path + '" id=' + id + '  height="' + height + '"  width="' + width + '" longdesc="' + longdesc + '" alt="' + alt + '"/&gt;');
                  imgArr[i] = description;
              });
          }
      });
  });
  </code></pre>