You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "junichi11 (via GitHub)" <gi...@apache.org> on 2023/04/10 22:55:27 UTC

[GitHub] [netbeans] junichi11 commented on a diff in pull request #5797: Sort overload methods in the Navigator

junichi11 commented on code in PR #5797:
URL: https://github.com/apache/netbeans/pull/5797#discussion_r1162150801


##########
java/java.navigation/src/org/netbeans/modules/java/navigation/ElementNode.java:
##########
@@ -673,7 +673,12 @@ int alphaCompare( Description d1, Description d2 ) {
                 if (d1.posInKind != d2.posInKind) {
                     return d1.posInKind - d2.posInKind;
                 }
-                return d1.name.compareTo(d2.name);
+                int compareToName = d1.name.compareTo(d2.name);
+                if (compareToName == 0) {
+                    return d1.htmlHeader.compareTo(d2.htmlHeader);

Review Comment:
   You are right! Will fix it. Thanks!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists