diff --git a/app/controllers/admin/indexes/item/data.js b/app/controllers/admin/indexes/item/data.js index 596aaea..957a765 100644 --- a/app/controllers/admin/indexes/item/data.js +++ b/app/controllers/admin/indexes/item/data.js @@ -38,7 +38,9 @@ export default class AdminIndexesItemDataController extends Controller { @action onSort(newSort) { - if (`${newSort}:asc` === this.sort) { + if (`${newSort}:desc` === this.sort) { + this.sort = null; + } else if (`${newSort}:asc` === this.sort) { this.sort = `${newSort}:desc`; } else { this.sort = `${newSort}:asc`;