|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
i'm new to mysql and php. when i sort a set of results by say "filesize" it returns something like this:
119 125 26 231 this is obviously not what i want, but it is sorting alphabetically, instead of the whole integer. anyone know a way around this? |
|
#2
|
|||
|
|||
|
What is the data type for the column? If it isn't numeric (i.e. it IS char, varchar, text, blob, etc) then it will sort alphabetically. If it IS a numeric data type than it will sort numerically.
|
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > sorting by integers properly |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|