How can I sort the dates in a column in a table? (timestamp)
Please note that I'm not asking to sort rows by date, but rather I'm asking how to swap dates in records so that all of the dates are in the correct order; without changing anything else.
So; for example:
id foo bar
1 A 03-03-2030
2 B 01-01-2010
3 C 02-02-2020
becomes...
id foo bar
1 A 01-01-2010
2 B 02-02-2020
3 C 03-03-2030
Preferred solution uses straight MySQL or MySQL and PHP.