javascript Sorting an array of objects
http://www.javascriptkit.com/javatutors/arraysort2.shtml
http://mwultong.blogspot.com/2006/11/sort-string-array-javascript.html