Sorting - Classic asp putting a specific text @ the top of the table
Hi all,
I've gotten a customer request. I have a task management system with various types of status. Completed & Recieved being one of them. My customer wants Recieved @ the top. However it's a Text based column in mySQL. I would normally sort either ASC or DESC, but neither puts Recieved @ the top. Anyway around this?
It does, but I was hoping to avoid that. I'll ponder over it for a while 'cause it's going to take some re-coding of the rest of my site.
I'll award you the points though as it is a sound solution.
Ryan Chong
if you do not want to have an additional column to determine the sequence ordering, then you will need to "hardcode" the ordering in your SQL statement, which in some cases, it's a valid solution.
It does, but I was hoping to avoid that. I'll ponder over it for a while 'cause it's going to take some re-coding of the rest of my site.
I'll award you the points though as it is a sound solution.