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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists