I am having some trouble ordering using MySQL as when using the standard
ORDER BY c DESC
it is ordering in like this:
3
21
20
2
I want it to be order like this:
21
20
3
2
Is there any way I can do this without adding 0 before the single digit numbers?
Change your column from a string (VARCHAR, TEXT, etc.) to a numeric one (DOUBLE, INT, etc.). A string will be sorted alphabetically, and 3 comes after 2.
Or, you can cast it, but this adds processing to the query: