MySQL Order By not using ASC or DESC
Posted
by Spencer Carnage
on Stack Overflow
See other posts from Stack Overflow
or by Spencer Carnage
Published on 2010-05-08T18:24:14Z
Indexed on
2010/05/08
18:28 UTC
Read the original article
Hit count: 182
mysql-query
|order-by
I have a column using IDs that I want to sort by. It has ID values from 1 to 3. However, instead of just using ASC of DESC, I want to do a custom sort by 2, 3, 1. How do I make this happen?
© Stack Overflow or respective owner