|
|
|
|
Joined: Sep 1999
Posts: 76
Power User
|
|
Power User
Joined: Sep 1999
Posts: 76 |
Found a solution to work.
I ended up using a CASE statement in my SELECT query to assign numerical values to my strings. It basically goes:
SELECT * FROM MyTable ORDER BY CASE MyField WHEN 'string1' THEN 100 WHEN 'string2' THEN 200 and so on... ELSE cast(MyField as signed) END
Cheers.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
|
Forums63
Topics37,583
Posts293,955
Members13,824
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 1841
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 14
|
|
|
|
|
|