Creative, Informative and Entertaining Stuff for everyone

Wednesday May 23rd 2012

Categories

Archives

Calender

September 2008
S M T W T F S
« Aug   Dec »
 123456
78910111213
14151617181920
21222324252627
282930  

Archive for September, 2008

Sorting a two dimensional array in javascript

function sortArray(x,y) { return ((x < y) ? -1 : ((x > y) ? 1 : 0)); } var givenarr = ,,]; givenarr.sort(sortArray); ======================== The result array will be givenarr = ,,];