I have a string that my result is sorting by. It is composed of a room number, resident name, and a few other fields.
Example:
460, Bob Jones, ......
5, John Doe, .....
The problem is, when I order this way, it puts large numbers that begin with a small number ahead of the small numbers that begin with a large one (ie, 460 is placed before 5). How can I have sql process the entire integer in the string and sort based on the entire number, not just the first digit value?