please delete this post...
you could sort the result with the SQL query from the very beggining.
that's true! Getting late and I satrt making stupid mistakes. Should've not post this.:o
i think the asort() sorts your array.
Then set this thread as resolved (if you think it is), please.