Thanks all. I found this function online and it works perfectly: ----------------------------------------------------------------- Array.prototype.sortOn = function(p){ Array.$sortprop = p; var sortfunc = function (a, b) { var p = Array.$sortprop; return b[p] < a[p]; } this.sort(sortfunc); delete Array.$sortprop;} -----------------------------------------------------------------_______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com