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.
This commit is contained in:
Kristina Lim
2018-07-08 17:32:16 +08:00
committed by Maikel Linke
parent 745390dcd5
commit 9f09861d8b

View File

@@ -1,4 +1,4 @@
angular.module("admin.indexUtils").controller "ColumnsCtrl", ($scope, Columns) ->
$scope.columns = Columns.columns
$scope.predicate = ""
$scope.reverse = false
$scope.reverse = true