but how do I sort it so the member with the most points prints first?I know array has .sort() method, but how does it work for a more complex array like this one?(is this an array of objects or a three-dimensional array? is it the same thing?

but I don't see here an example with an array that has the same structure as my array... these kinds of arrays can have a million different structures.. they're like JSON objects... it drives me nuts...

everyplace where I look this up I see

<font face='Courier New'>members.sort(function (a, b) {.... }</font>

isn't this a comparison fn?

if I want to sort by points how do I compare just two values? what if I have eight elements in the array?

there's no simple way to say print the object with the highest no. of points first?

this is for a test, there are 6 questions, this is the only one I can't do, I have been working on it for hours.. I have never worked with this kind of array and I find this really hard...

there's no simple way to say print the object with the highest no. of points first?

There is, and that is to sort the contents so that it is ordered with the highests number of points being first, as according to the example that I gave.Here is some sample code that demonstrates it in action, too.http://jsfiddle.net/pmw57/gKGbY/