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;
}

View File

@ -114,7 +114,7 @@ export default class PostsUserPage extends UserPage {
type: 'comment'
},
page: {offset, limit: this.loadLimit},
sort: '-time'
sort: '-createdAt'
});
}