Sort two dimensional arrays using Javascript


This nifty little routine is very useful. With it, one can sort tables on a web page without having to reload the entire page. To see an example in action click here.

Here is the contents of the file I call "2darraysort.js" which contains the sort2DArray() function that does all the work:

Click here to download a zip file that contains this file as well as the source for the example page demonstrated by the link up above.

Copyright © 2003- 2008, Orville Paul Chomer, All Rights Reserved