jquery - In Javascript: Load some collection of data, randomly sort it, return it for output -


I am loading some XML data, making it in an unreserved list and displaying it. Now I need to sort this data, so it is displayed in random order every time it loads. I need to completely change how I am doing this down or An easy way to produce it before using your existing code ? Formatting is to obtain and solve the data

Here is the direct load and display code:

  var out = '& lt; Li & gt; '; . $ (Xml) .find ('person') each (function () {counter_image = $ (this) .find ('person_image') text ();. PERSON_NAME = $ (this) .find ( 'PERSON_NAME') text ();. Person_title = $ (this) .find ('person_title') text (); on top person_company = $ (this) .find ('person_company') text (); out = outside + '  

Comments