diff --git a/js/app/views/ExplorerUI.js b/js/app/views/ExplorerUI.js index fa4e170..bb633d7 100644 --- a/js/app/views/ExplorerUI.js +++ b/js/app/views/ExplorerUI.js @@ -214,7 +214,7 @@ Ext.define('amdaUI.ExplorerUI', { var tree = Ext.getCmp(amdaUI.ExplorerUI.RESRC_TAB.TREE_ID); tree.getStore().sort([ { sorterFn: function(o1, o2){ - if (o1.get('nodeType') !== 'localParam') + if (o1.get('nodeType') !== 'localParam' || o1.get('isParameter')) return; return o1.get('text').toUpperCase() < o2.get('text').toUpperCase() ? -1 : 1; @@ -267,7 +267,7 @@ Ext.define('amdaUI.ExplorerUI', { sorters:[{ direction: 'ASC' , sorterFn: function(o1, o2){ - if (o1.get('nodeType') == 'localParam' || o1.get('nodeType') == 'myData') { + if ((o1.get('nodeType') == 'localParam' && !o1.get('isParameter')) || o1.get('nodeType') == 'myData') { return o1.get('text').toUpperCase() < o2.get('text').toUpperCase() ? -1 : 1; } -- libgit2 0.21.2