Showing
1 changed file
with
9 additions
and
0 deletions
... | ... | @@ -184,6 +184,15 @@ function RuleChainService($http, $q, $filter, $ocLazyLoad, $translate, types, co |
184 | 184 | ruleNodeComponents.push( |
185 | 185 | types.ruleChainNodeComponent |
186 | 186 | ); |
187 | + ruleNodeComponents.sort( | |
188 | + (comp1, comp2) => { | |
189 | + var result = comp1.type.localeCompare(comp2.type); | |
190 | + if (result == 0) { | |
191 | + result = comp1.name.localeCompare(comp2.name); | |
192 | + } | |
193 | + return result; | |
194 | + } | |
195 | + ); | |
187 | 196 | deferred.resolve(ruleNodeComponents); |
188 | 197 | }, |
189 | 198 | () => { | ... | ... |