Commit 9cd69cb8 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Sort constructor first in HoverMenu.

Fixing a regression introduced by sorting instance and static members
intermixed.
parent cf71bff8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -69,6 +69,9 @@ Ext.define('Docs.view.cls.Toolbar', {
            // combine both static and instance members into one alphabetically sorted array
            var members = this.docClass.members[type].concat(this.docClass.statics[type]);
            members.sort(function(a, b) {
                if (a.name === "constructor" && a.tagname === "method") {
                    return -1;
                }
                return a.name < b.name ? -1 : (a.name > b.name ? 1 : 0);
            });
            if (members.length > 0) {