Support alpha:desc option in sortFacetValuesBy #854
balbesqueen
started this conversation in
Feedback & Feature Proposal
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Allow
sortFacetValuesBy
to acceptalpha:desc
to enable reverse alphabetical sorting of facet values.This is especially useful when facet values are chronological (e.g. years, versions), where it's desirable to show the most recent values first.
Basic example
When indexing a list of media items or articles with a
year
facet, we currently get:2020
,2021
,2022
,2023
,2024
But often we'd prefer to display:
2024
,2023
,2022
,2021
,2020
This could be achieved with:
Beta Was this translation helpful? Give feedback.
All reactions