> Now I want to sort the array using the first element in the second > "dimension" (if that's what you call it)... that is, using the numeric > value. So the output when looping throught is this: Are you sure it doesn't come from an sql query? If so you'd better do the sorting db-side. My $0.02 Philippe