I currently have a simple MySQL select with an order by
on a column called postcodes
. These postcodes are UK.
It is currently outputting in this order: SE1, SW1, SE10, SE11, SE2, SW2, SE3
. I know using ABS()
would correct the number ordering, but I'm not sure how I would do it in this case because there are letters as well as numbers.
I would like to display them in the following order:
SE1, SE2, SE3 SE10, SE11, SW1, SW2
Thanks for any help.