Commit 212c61c9 authored by Sandro Lutz's avatar Sandro Lutz
Browse files

Fix sorting on event page

parent 192ce03a
......@@ -69,6 +69,8 @@ export default class Query {
Object.keys(query).forEach(key => {
if (Array.isArray(query[key])) {
parsedQuery[key] = query[key];
} else if (key === 'sort') {
parsedQuery[key] = query[key];
} else {
parsedQuery[key] = JSON.stringify(query[key]);
}
......
......@@ -120,7 +120,7 @@ export default class EventList extends FilteredListPage {
if (query.$and.length === 0) {
delete query.$and;
}
return controller.setQuery({ where: query });
return controller.setQuery({ where: query, sort: '-time_start,-time_advertising_start' });
},
};
}
......
Supports Markdown
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