I have a list of listings with
- Texas with count 5
- New york with count 6
- Alabama with count 4
- LA with 1
- Boston with 1
- Washington with 1
I want to order to
- Alabama
- Newyork
- Texas
- Boston
- LA
- Washington
So anything with count()>1 should be arrange alphabetically to top of list and anything with count()1 should be arrange alphabetically at bottom of list.
Currently i have used
$orderby = 'counter DESC, display_value ASC';
but its giving me
- New york
- Texas
- Alabama
- Boston
- LA
- Washington
Aucun commentaire:
Enregistrer un commentaire