diff options
author | Pascal Mugnier <pascal.mugnier@sonarsource.com> | 2018-03-21 07:40:49 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-03-22 12:37:50 +0100 |
commit | 1e0d83e057847e8964af96336f1044b1264b8f97 (patch) | |
tree | ef873bdcbefa7be1b7d265353988748517cccad8 /server/sonar-web/src/main/js/apps/issues | |
parent | fc8fb28469f949c1fd27db14b49f4997237f5610 (diff) | |
download | sonarqube-1e0d83e057847e8964af96336f1044b1264b8f97.tar.gz sonarqube-1e0d83e057847e8964af96336f1044b1264b8f97.zip |
SONAR-10501 Add secondary sorting by name in rules facet on issues page (#17)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues')
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/sidebar/RuleFacet.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/RuleFacet.js b/server/sonar-web/src/main/js/apps/issues/sidebar/RuleFacet.js index b30780fa363..6eff44ecec8 100644 --- a/server/sonar-web/src/main/js/apps/issues/sidebar/RuleFacet.js +++ b/server/sonar-web/src/main/js/apps/issues/sidebar/RuleFacet.js @@ -102,7 +102,7 @@ export default class RuleFacet extends React.PureComponent { return null; } - const rules = sortBy(Object.keys(stats), key => -stats[key]); + const rules = sortBy(Object.keys(stats), key => -stats[key], key => this.getRuleName(key)); return ( <FacetItemsList> |