jtulach commented on code in PR #9629:
URL: https://github.com/apache/netbeans/pull/9629#discussion_r4083309653
##########
ide/projectui/src/org/netbeans/modules/project/ui/actions/SetMainProject.java:
##########
@@ -162,7 +162,7 @@ public void run() {
"LBL_NoneMainProject_Name=&None"
})
private void createSubMenu(Project[] projects) {
- Arrays.sort(projects, OpenProjectList.projectByDisplayName());
Review Comment:
Please, let me show an _annecdoctical evidence_ of the **randomness** of the
_sorting by display name_. Sometimes I am mixing projects from multiple
repositories. Today I had projects from NetBeans own code base, as well as
projects from GraalVM repository open. This is how it looks like in NetBeans 31:
<img width="467" height="414" alt="Randomness in old NetBeans"
src="https://github.com/user-attachments/assets/9ba22a78-6277-4fa5-a3c6-0cb19401c3b5"
/>
It is easy to recognize what projects are coming from which repository as
they have _different icons_. But the order! Because the projects are sorted by
_display name_, those two independent sets of projects are intermixed with each
other. The **ordering is random**, basically.
Today I decided to switch to the latest development version and voilá:
<img width="467" height="414" alt="ordering by path"
src="https://github.com/user-attachments/assets/884063b1-20ad-4e3b-bad7-1e449f0c3777"
/>
The _ordering by path_ makes sense! First of all there is a _group of
projects_ from the GraalVM repository, then there is the _group of projects_
from the NetBeans repository. There is no nesting in the hierarchy of those
groups (that'd be subject of #9624 for example), but even the **grouping by
path** is a tremendous step forward.
PS: I've been so shocked realizing how better the ordering is! I've just had
to install the (already deleted) old NetBeans again to take the picture. As it
speaks for thousand of words.
--
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