Ordering data type varchar
I keep forgetting on how to order a column with datatype varchar
One of my column for pricing has these values: 5,12,15,18,21,23,31 etc when I cfoutput my query result I got the list showing as: 12,15,18,21,23,31,5
It should be from less price to higher prices: 5,12,15,18,21,23,31 but I can't make this happening because the datatype for this column is varchar.
I know there is a way around but I can't remember, can someone help me?
My query is real simple:
select ranges, prices
from fees
order by prices and this doesn't work
