Merge pull request #10606 from thejwuscript/10116-improve-bom-sorting

Sort orders by last name
This commit is contained in:
Konrad
2023-04-12 16:36:45 +02:00
committed by GitHub
6 changed files with 333 additions and 296 deletions

View File

@@ -11,5 +11,6 @@ angular.module("admin.indexUtils").factory 'SortOptions', ->
sortingExpr
toggle: (predicate) ->
@reverse = (@predicate == predicate) && !@reverse
# predicate is a string or an array of strings
@reverse = (JSON.stringify(@predicate) == JSON.stringify(predicate)) && !@reverse
@predicate = predicate