Commit 199550407445b447129b95cb348748a2bb150fee
1 parent
75a3182b
Exists in
master
and in
109 other branches
sort MyData params alphabetically
Showing
1 changed file
with
6 additions
and
4 deletions
Show diff stats
js/app/views/ExplorerUI.js
@@ -265,10 +265,12 @@ Ext.define('amdaUI.ExplorerUI', { | @@ -265,10 +265,12 @@ Ext.define('amdaUI.ExplorerUI', { | ||
265 | model: 'amdaModel.AmdaNode', | 265 | model: 'amdaModel.AmdaNode', |
266 | sorters:[{ direction: 'ASC' , | 266 | sorters:[{ direction: 'ASC' , |
267 | sorterFn: function(o1, o2){ | 267 | sorterFn: function(o1, o2){ |
268 | - if (o1.get('nodeType') !== 'localParam') | ||
269 | - return; | ||
270 | - | ||
271 | - return o1.get('text').toUpperCase() < o2.get('text').toUpperCase() ? -1 : 1; | 268 | + |
269 | + if (o1.get('nodeType') == 'localParam' || o1.get('nodeType') == 'myData') { | ||
270 | + return o1.get('text').toUpperCase() < o2.get('text').toUpperCase() ? -1 : 1; | ||
271 | + } | ||
272 | + | ||
273 | + return; | ||
272 | } | 274 | } |
273 | }], | 275 | }], |
274 | listeners: { | 276 | listeners: { |