From 9f09861d8b72f00af3baecf0e94fa55bb9fbfb6d Mon Sep 17 00:00:00 2001 From: Kristina Lim Date: Sun, 8 Jul 2018 17:32:16 +0800 Subject: [PATCH] Change sorting to be done in ascending order first Currently, we always toggle "reverse" when triggering a sort. If "reverse" is initially set to false, triggering a sort for the first time then toggles this to true. The effect is that, the first time that sorting is done, the rows are sorted in reverse order. This is not intuitive - they should be sorted in ascending order first. --- .../admin/index_utils/controllers/columns_controller.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/admin/index_utils/controllers/columns_controller.js.coffee b/app/assets/javascripts/admin/index_utils/controllers/columns_controller.js.coffee index 39556983b3..b51b26d633 100644 --- a/app/assets/javascripts/admin/index_utils/controllers/columns_controller.js.coffee +++ b/app/assets/javascripts/admin/index_utils/controllers/columns_controller.js.coffee @@ -1,4 +1,4 @@ angular.module("admin.indexUtils").controller "ColumnsCtrl", ($scope, Columns) -> $scope.columns = Columns.columns $scope.predicate = "" - $scope.reverse = false + $scope.reverse = true