]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5516 Sort repositories by name, then language in the "Repositories" criterion
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Thu, 7 Aug 2014 14:04:46 +0000 (16:04 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Thu, 7 Aug 2014 14:04:46 +0000 (16:04 +0200)
server/sonar-web/src/main/coffee/coding-rules/views/filters/repository-filter-view.coffee

index e37837306f3bbbfd3f27e1d03cac6affdb0c13a4..aeae2bea0563c2e391a9febd9ca5612c4e9b2e82 100644 (file)
@@ -47,7 +47,8 @@ define [
             checked: false
             index: index
             language: languages[item.language]
-        comparator: 'index'
+        comparator: (item) ->
+          [item.get('text'), item.get('language')]
       )
       if currentValue
         @restore(currentValue)