I have data in the following format :
AC-1234/12
AC-4321/12
ANA-4532/12
231
IHC-543/12
F-125/12
F-345/12
ds-234/12
I want to do a natural sort on this in mysql.
the result should be as such :
AC-1234/12
AC-4321/12
ANA-4532/12
F-125/12
F-345/12
ds-234/12
231
tried some of the mysql natural sorting tricks but didn't work for me.Suggestions would be greatly appreciated.
I tried this :
select column
from table_name
Order By LENGTH(column), column