1
0
mirror of https://github.com/flarum/core.git synced 2025-07-12 04:16:24 +02:00

Fix discussion and post list sorting

This commit is contained in:
Toby Zerner
2018-07-21 17:10:02 +09:30
parent 2d667d885d
commit 6f3eb3f335
4 changed files with 11 additions and 11 deletions

View File

@ -112,10 +112,10 @@ export default class DiscussionList extends Component {
if (this.props.params.q) {
map.relevance = '';
}
map.latest = '-lastTime';
map.top = '-commentsCount';
map.newest = '-startTime';
map.oldest = 'startTime';
map.latest = '-lastPostedAt';
map.top = '-commentCount';
map.newest = '-createdAt';
map.oldest = 'createdAt';
return map;
}