so here’s the problem
I have 3 types for a hotel
- premium
- featured
- basic
I am trying to display a list of hotels and sort them so that featured hotels are the first shown
what mysql query would accomplish this?
EDIT
here’s the table, with some fields stripped
ID | hotel_name | type
=======================
1 | Aria Hotel | basic
You could rearrange
'featured', 'premium', 'basic'upto your needs, and may also putDESCthere tooFor example
or to arrange the rest as normal sorting order.