Permalink
Browse files

Fix sorting detail tabs in GridViewer

  • Loading branch information...
1 parent 8207d45 commit 4363940f72eef4b187748daba9dfca4bd1163793 @nabcos nabcos committed with cstamas Nov 14, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 nexus/nexus-webapp/src/main/webapp/js/nexus/panels/GridViewer.js
View
5 nexus/nexus-webapp/src/main/webapp/js/nexus/panels/GridViewer.js
@@ -391,7 +391,10 @@ Ext.namespace('Sonatype.panels');
}
else {
panel.tabPanel.items.sort('ASC', function(a,b) {
- return a.tabTitle >= b.tabTitle;
+ if (a.tabTitle <= b.tabTitle) {
+ return a.tabTitle < b.tabTitle ? -1 : 0;
+ }
+ return 1;
});
panel.tabPanel.on('beforetabchange', function(tabpanel, newtab, currenttab) {
// don't want to set this unless user clicked

0 comments on commit 4363940

Please sign in to comment.