@@ -845,9 +845,6 @@ def augment_solr_response(response, collection, query):
dimension = 2
counts = _augment_stats_2d(name, facet, counts, selected_values)
- if collection_facet['properties']['sort'] == 'asc':
- counts.reverse()
-
facet = {
'id': collection_facet['id'],
'field': facet['field'],
@@ -336,7 +336,8 @@ class SolrApi(object):
_f = {
'limit': int(facet['properties'].get('limit', 10)) + (1 if facet['widgetType'] == 'facet-widget' else 0),
- 'mincount': int(facet['properties']['mincount'])
+ 'mincount': int(facet['properties']['mincount']),
+ 'sort': {'count': facet['properties']['sort']}
}
if 'start' in facet['properties']: