I have the following values in my rows (they should be ordered like this);
**CLASS_CODE**
6A
6B
6C
10A
10B
10C
Well if I do a simple ORDER BY CLASS_CODE
, I will get first 10x then 6x values.
So I use ORDER BY (CLASS_CODE+0)
, this orders them correctly so that 6x comes first, but it does not order them accordingly to chars as well.
What would be the correct way to order by, so I can get the correct order as shown above?