sort tags list by lowercase name

stable
Juanfran 2016-10-04 08:21:17 +02:00
parent 603c81a981
commit 435a001363
1 changed files with 3 additions and 1 deletions

View File

@ -730,8 +730,10 @@ class ProjectTagsController extends taiga.Controller
@.loading = false
filterAndSortTags: =>
@scope.projectTags = _.sortBy @scope.projectTagsAll, (it) -> it.name.toLowerCase()
@scope.projectTags = _.filter(
_.sortBy(@scope.projectTagsAll, "name"),
@scope.projectTags,
(tag) => tag.name.indexOf(@scope.tagsFilter.name) != -1
)