Commonwealth-VLR-Engine is a Rails engine for creating Blacklight apps that provide access to content from Solr/Fedora, packaging a number of feature-rich enhancements and modifications.
When I am on the Formats page (catalog#formats_facet)
And I click on the A-Z sort button
The results should be sorted correctly by alpha
So the results match what any user would expect
This is caused because Solr is (correctly) sorting the source data values, rather than the display values, which are modified by CommonwealthVlrEngine::ApplicationHelper#render_format.
Since the formats list is finite and we know what all the links are, we could refactor this page to use the default Solr response but render the facet values more deliberately in the desired order.
When I am on the Formats page (catalog#formats_facet) And I click on the A-Z sort button The results should be sorted correctly by alpha So the results match what any user would expect
This is caused because Solr is (correctly) sorting the source data values, rather than the display values, which are modified by
CommonwealthVlrEngine::ApplicationHelper#render_format
.Since the formats list is finite and we know what all the links are, we could refactor this page to use the default Solr response but render the facet values more deliberately in the desired order.