Topic: Sort array naturally
I have an array that is the result of a query. I want to sort it by a specific column, but:
In MySQL, the column is VARCHAR. Therefore, it is not sorted correctly when using ORDER BY (10 comes before 2).
How can I sort the array as done in natcasesort (can't use that though, because you can't specify which array element is the ordering one.
Wow, that was bad english
Thanks in advance