aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/coffee/component-viewer
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/coffee/component-viewer')
-rw-r--r--server/sonar-web/src/main/coffee/component-viewer/mixins/main-issues.coffee5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/coffee/component-viewer/mixins/main-issues.coffee b/server/sonar-web/src/main/coffee/component-viewer/mixins/main-issues.coffee
index 2bee7384f30..8e38c7f2d39 100644
--- a/server/sonar-web/src/main/coffee/component-viewer/mixins/main-issues.coffee
+++ b/server/sonar-web/src/main/coffee/component-viewer/mixins/main-issues.coffee
@@ -19,9 +19,10 @@ define [
extra_fields: 'actions,transitions,assigneeName,actionPlanName'
$.get API_ISSUES, options, (data) =>
@state.set 'hasIssues', true
+ issues = _.sortBy data.issues, (issue) -> "#{issue.rule}_____#{issue.message}"
@source.set
- issues: data.issues
- activeIssues: data.issues.filter (issue) -> !issue.resolution
+ issues: issues
+ activeIssues: issues.filter (issue) -> !issue.resolution
showIssues: (store = false, issue) ->