Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sorting Enum's 1

Status
Not open for further replies.

skiflyer

Programmer
Sep 24, 2002
2,213
US
Is there a way to easily sort Enum's in the SQL query by the data rather than their position in the enumeration array?

i.e. I have a field called priority, it holds the values
1-10, A-D, Must, High, Medium, Low, Very Low, ''

(The last being blank string)

It sorts by the order I put them into the enum, which is actually better in this particular case... but I'm curious, if I wanted to sort by the normal alphabetical method on this column, could I?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top