FIX: Correct sorting issues

This commit is contained in:
Ahmed Gagan 2020-08-20 16:37:24 +05:30 committed by GitHub
parent 7ff3641986
commit b88723a3b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -46,11 +46,9 @@ export default UserTopicsList.extend({
changeSort(sortBy) {
if (sortBy === this.order) {
this.toggleProperty("ascending");
this.model.refreshSort(sortBy, this.ascending);
this.refreshModel();
} else {
this.setProperties({ order: sortBy, ascending: false });
this.model.refreshSort(sortBy, false);
this.refreshModel();
}
},