Commit ab41a22b8b2e2a3d38718f4c35e363aad2e34e1f
1 parent
09625436
Exists in
master
and in
107 other branches
no sorting at parameters level
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
js/app/views/ExplorerUI.js
... | ... | @@ -214,7 +214,7 @@ Ext.define('amdaUI.ExplorerUI', { |
214 | 214 | var tree = Ext.getCmp(amdaUI.ExplorerUI.RESRC_TAB.TREE_ID); |
215 | 215 | tree.getStore().sort([ |
216 | 216 | { sorterFn: function(o1, o2){ |
217 | - if (o1.get('nodeType') !== 'localParam') | |
217 | + if (o1.get('nodeType') !== 'localParam' || o1.get('isParameter')) | |
218 | 218 | return; |
219 | 219 | |
220 | 220 | return o1.get('text').toUpperCase() < o2.get('text').toUpperCase() ? -1 : 1; |
... | ... | @@ -267,7 +267,7 @@ Ext.define('amdaUI.ExplorerUI', { |
267 | 267 | sorters:[{ direction: 'ASC' , |
268 | 268 | sorterFn: function(o1, o2){ |
269 | 269 | |
270 | - if (o1.get('nodeType') == 'localParam' || o1.get('nodeType') == 'myData') { | |
270 | + if ((o1.get('nodeType') == 'localParam' && !o1.get('isParameter')) || o1.get('nodeType') == 'myData') { | |
271 | 271 | return o1.get('text').toUpperCase() < o2.get('text').toUpperCase() ? -1 : 1; |
272 | 272 | } |
273 | 273 | |
... | ... |