Over at this previous question I figured out how to give a view a list of options that look like this:
Sort by
- Date - Newest
- Date - Oldest
- Price - Highest
- Price - Lowest
Suppose there was a particular sort order combination of sort option and sort direction that didn't make any sense. For example, imagine an "Editor's Choice" sort, where staff apply a rating to products to give the best products a boost.
This makes sense:
Sort by
- Editor's choice
- Date - Newest
- Date - Oldest
- Price - Highest
- Price - Lowest
This is just a bit strange:
Sort by
- Editor's choice - most favoured
- Editor's choice - not favoured
- Date - Newest
- Date - Oldest
- Price - Highest
- Price - Lowest
...not least because 50%+ of products will be equally at the bottom of the "not favoured" list. This sort might also give the misleading impression that the product at the top of the "not favoured" list has something wrong with it, when actually it's equally not-singled-out-for-praise with 50% or more of the shop.
What I'm currently doing, is the brute force approach - using CSS to set the option based on 'Editor's choice Ascending' to display: none;
. I don't like this, because the wrappers mean I have to use first/nth child selectors which could mean the option gets hidden in future after a seemingly inconsequential update or views config change.
Is there a more stable way to properly remove this option from the form?