If I have:
ID | Title
1 | Shirt
2 | CD
3 | Cap
4 | Mp3
5 | Badge
If I want to sort by this order: 4, 2, 5, 3,1. Is there a way to do an sql query where you explicitly specify this? Something like:
select * from TABLE order by ID(4,2,5,3,1) ??
Actually, you were surprisingly close. It’s a simple as: