mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
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:
committed by
Maikel Linke
parent
745390dcd5
commit
9f09861d8b
@@ -1,4 +1,4 @@
|
||||
angular.module("admin.indexUtils").controller "ColumnsCtrl", ($scope, Columns) ->
|
||||
$scope.columns = Columns.columns
|
||||
$scope.predicate = ""
|
||||
$scope.reverse = false
|
||||
$scope.reverse = true
|
||||
|
||||
Reference in New Issue
Block a user