Is there a way to sort multidimensional arrays?
You can sort simple arrays:
myArray = ['b','a','c'];
That would alphabetize the array and return a,b,c.
How would you sort the following array, alphabetizing myArray[x]:
myArray = [['b','green'],['a','red'],['c','blue']];
So it returns red, green, blue? Seems like it would be simple.