1) you have a two-dimension array and you are tring to sort by elements in the second dim.
2) you want to sort by two keys
You can't do either one of these with a simple built in function; you will have to do it with code.
Do you really need to sort the array, or do you just need to output the information in that order?
-- Rich