Hi folks,
I'm a little lost on this one. I tried reading the forums for an answer but couldn't find one that worked. If I have a field called title_level, and it can contains values such as A, B, C, 1, 2, 3... I want to sort results so that they'd be listed as:
A
C
1
3
11
14
.
.
.
I've got this going on right now: ORDER BY lpad(title_level, 2) which results in this:
1
3
11
14
A
C
How can I get the letters to sort alphabetically before the numbers, and keep the numbers as they are (ie 1, 3, 11, 14 NOT 1, 11, 3, 14)?
Thanks for all your great advice!
Jeff
I'm a little lost on this one. I tried reading the forums for an answer but couldn't find one that worked. If I have a field called title_level, and it can contains values such as A, B, C, 1, 2, 3... I want to sort results so that they'd be listed as:
A
C
1
3
11
14
.
.
.
I've got this going on right now: ORDER BY lpad(title_level, 2) which results in this:
1
3
11
14
A
C
How can I get the letters to sort alphabetically before the numbers, and keep the numbers as they are (ie 1, 3, 11, 14 NOT 1, 11, 3, 14)?
Thanks for all your great advice!
Jeff