Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix sorting detail tabs in GridViewer

  • Loading branch information...
commit 4363940f72eef4b187748daba9dfca4bd1163793 1 parent 8207d45
@nabcos nabcos authored cstamas committed
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
Please sign in to comment.
Something went wrong with that request. Please try again.