> The best option is to sort it in the query. yes, of course!, that makes sense.. I feel silly not thinking of that in the first place. Now I do not need to sort the array with PHP.. but glad you mentioned array_multisort() as well.. so I could make a mental note of that function. Thanks to Stephen too for your reply. I appreciate the points you made.. and why, I believe. (Even if I am not heeding them all just now) Thanks guys! -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php