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,7 +214,7 @@ Ext.define('amdaUI.ExplorerUI', { | ||
214 | var tree = Ext.getCmp(amdaUI.ExplorerUI.RESRC_TAB.TREE_ID); | 214 | var tree = Ext.getCmp(amdaUI.ExplorerUI.RESRC_TAB.TREE_ID); |
215 | tree.getStore().sort([ | 215 | tree.getStore().sort([ |
216 | { sorterFn: function(o1, o2){ | 216 | { sorterFn: function(o1, o2){ |
217 | - if (o1.get('nodeType') !== 'localParam') | 217 | + if (o1.get('nodeType') !== 'localParam' || o1.get('isParameter')) |
218 | return; | 218 | return; |
219 | 219 | ||
220 | return o1.get('text').toUpperCase() < o2.get('text').toUpperCase() ? -1 : 1; | 220 | return o1.get('text').toUpperCase() < o2.get('text').toUpperCase() ? -1 : 1; |
@@ -267,7 +267,7 @@ Ext.define('amdaUI.ExplorerUI', { | @@ -267,7 +267,7 @@ Ext.define('amdaUI.ExplorerUI', { | ||
267 | sorters:[{ direction: 'ASC' , | 267 | sorters:[{ direction: 'ASC' , |
268 | sorterFn: function(o1, o2){ | 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 | return o1.get('text').toUpperCase() < o2.get('text').toUpperCase() ? -1 : 1; | 271 | return o1.get('text').toUpperCase() < o2.get('text').toUpperCase() ? -1 : 1; |
272 | } | 272 | } |
273 | 273 |