Commit 9b29d244 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

List can be sort using DESC criteria.

parent 6c202ee3
......@@ -720,7 +720,15 @@ class List(BaseReport):
store = Store(data=[], fields=[])
store.groupField = config.group_field.replace('.', '')
store.sorters = [el.replace('.', '') for el in config.sorters]
store.sorters = []
for el in config.sorters:
sorter = dict(property=el.replace('.', '').replace('~', ''))
if el.startswith('~'):
sorter["direction"] = "DESC"
store.sorters.append(sorter)
self._store = store
self._set_store_fields()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment