View Single Post
Old 10-06-2005, 03:46 PM   #1 (permalink)
Odoggy5
Code Monkey
 
Odoggy5's Avatar
 
Join Date: Aug 2003
Location: SF
Posts: 47
Odoggy5 is on a distinguished road
Send a message via AIM to Odoggy5
sorting question

I am using a character field in one of my tables(MySQL) and using numbers in that field also how can make the #'s come out in numerical order?

ex.

cnfg1, cnfg2, cnfg3...cnfg10, cnfg11, cnfg12

my query sorts them like

cnfg1, cnfg10, cnfg11, cnfg12, cnfg2, cnfg20, cnfg21...

i want them like

cnfg1, cnfg2, cnfg3, cnfg4,...cnfg11, cnfg12, cnfg13

is there a way for me to do that or will i have to have seperate fields?
Odoggy5 is offline   Reply With Quote