Jon Perry on Sun, 15 Jun 2003 17:47:16 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Sorting multi-dimensional vectors


I wish to sort a vector, e.g.

[[1,2],[2,3],[1,3]]

All the inner vectors are the same length, and the order returned should be;

[[1,2],[1,3],[2,3]]

Is there a routine for this, vecsort() doesn't seem to work.

Jon Perry
perry@globalnet.co.uk
http://www.users.globalnet.co.uk/~perry/maths/
http://www.users.globalnet.co.uk/~perry/DIVMenu/
BrainBench MVP for HTML and JavaScript
http://www.brainbench.com