Okay, this may be a little off topic.
In my mysql database, I have a text field that contains almost entirely numbers. I need to sort by that field, but I need it to sort like this:
33
35
401
1005
2234
Currently, it's sorting like this:
1005
2234
33
35
401
In my sql query, how do I convert this field to numbers in the query so that I can sort it correctly?
Thanks.