I'm trying to sort an array of objects, but my sort function doesn't appear
to be working and I can't find any documentaion on string or object
comparisons.
I'm trying to sort based on the object's name so the call looks like this:
arrToSort.sort( compare )
function compare( a, b ) { return a.name - b.name; }
This doesn't work ( obviously ), and I can't seem to figure it out. Does
anyone out there know how to do this or know of some documentation that can
point me in the right direction?
Jon
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help