Click to See Complete Forum and Search --> : How to sort a 2D-Array


trukli58
08-20-2003, 08:17 AM
Hi, can anybody tell me the possibilities to sort a 2D-Array in Javascript?

Thanx!

Charles
08-20-2003, 09:22 AM
JavaScript doesn't have multi-dimensional arrays; the best that you can do is to set up Arrays of other Arrays. Arrays, however, can be sorted with the "Array.sort()" method.

Fang
08-20-2003, 10:29 AM
Maybe this (http://simplythebest.net/scripts/javascript_117.html) will be of use.