Sort orders by last names

This commit is contained in:
James Wu
2023-03-24 00:33:55 +09:00
committed by David Cook
parent 15058299d8
commit 546e90b286
4 changed files with 56 additions and 24 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