There is currently no way of controlling the sorting order of date facets blocks. Default is chronological order, but some site might want to promote some content from most recent to older.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | Screen shot 2011-05-03 at 10.31.41 PM.png | 74.48 KB | cpliakas |
| #1 | 1104562-Support-sort-order-of-facet-links-for-.patch | 3.49 KB | scor |
Comments
Comment #1
scor commentedfirst try. This patch leaves the active facets on top of the inactive facets, which are sorted accordingly. Not sure if this is the best approach.
Also, not sure the date facets block support "Sort active facet links above inactive facets" although it's there in the block settings form (OT).
Comment #2
pwolanin commentedMight already be available? In any case, the code is here now.
Comment #3
cpliakas commentedFacet API allows for sorting of all facets via the GUI, so this satisfies the use case in this post. The next release of Apache Solr will leverage Facet API, so marking the issue as fixed. See the attached screenshot for an example of what the UI provides regarding sorting.
Thanks,
Chris