When you call sort you can optionallly pass a function pointer with a custom sort routine. This function compares the two items and returns 1 if the first is greater than the second, -1 if the second is greater and 0 if equal. Although a bit long winded a general example for your case is below:
Code:
function compareOnField2(Item1, Item2)
{
var item1 = Item1[1];
var item2 = Item2[1];
if (item1 > item2) return 1;
if (item1 < item2) return -1;
return 0;
}
Then call
Code:
users.sort(compareOnField2)
Make sure there are no quotes around the function name.
--
Joe