I want to sort the following data items in the order they are presented below (numbers 1-12):
1 2 3 4 5 6 7 8 9 10 11 12
However, my query - using
I hate this, but this will work
order by lpad(name, 10, 0) <-- assuming maximum string length is 10 <-- you can adjust to a bigger length if you want to