Bug 570122 - [Package Explorer] Sorting not consistent
Summary: [Package Explorer] Sorting not consistent
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.18   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted, investigate, needinfo
Depends on:
Blocks:
 
Reported: 2021-01-06 05:44 EST by Marvin Fröhlich CLA
Modified: 2023-02-01 03:57 EST (History)
1 user (show)

See Also:


Attachments
Example for wrong sorting (26.20 KB, image/png)
2021-01-06 05:44 EST, Marvin Fröhlich CLA
no flags Details
Example project (2.38 KB, application/x-zip-compressed)
2021-01-06 10:40 EST, Marvin Fröhlich CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marvin Fröhlich CLA 2021-01-06 05:44:13 EST
Created attachment 285200 [details]
Example for wrong sorting

As you can see in the attached screenshot these elements are not sorted consistently. This started in 2020-09 I believe, maybe even 2020-06. Used to be correct before.

I constructed these file names to be sorted in a certain way by infixing some dashes. And I expect these "make---" elements to be grouped together.
Comment 1 Noopur Gupta CLA 2021-01-06 06:56:41 EST
Please check if https://www.eclipse.org/eclipse/news/4.18/jdt.php#package-explorer-lib-sortedbydefault option is applicable to your case.

If not, please try out a few release builds and provide the build ids where it was working and where it started happening.

Also, attach a sample project with steps to reproduce the issue.
Comment 2 Marvin Fröhlich CLA 2021-01-06 08:30:51 EST
The Sort library option did not change anything here.

I will send you an example project later.
Comment 3 Marvin Fröhlich CLA 2021-01-06 10:40:36 EST
Created attachment 285206 [details]
Example project

As you can see in the example project the files with dashes are sorted as if the dashes did not exist in the filename while the files with underscores are sorted reflecting these characters. The files with underscores are sorted as expected.

Well, of couse I could simply switch to ugly underscores. But in the end this is still a big, isn't it?
Comment 4 Marvin Fröhlich CLA 2021-01-11 05:43:00 EST
@Noopur, you tagged with "needinfo". What info do you need?
Comment 5 Noopur Gupta CLA 2021-01-11 05:48:36 EST
(In reply to Noopur Gupta from comment #1)
> If not, please try out a few release builds and provide the build ids where
> it was working and where it started happening.

This info would be helpful.
Comment 6 Marvin Fröhlich CLA 2021-01-11 05:53:47 EST
(In reply to Noopur Gupta from comment #1)
> If not, please try out a few release builds and provide the build ids where
> it was working and where it started happening.

I understand, that you need info. But trying out multiple builds would be inadequate for this kind of bug. I assume, you know your code the best. And with the provided test project you can easily reproduce the issue.

Don't you think, this is good for you to find and fix the bug?
Comment 7 Eclipse Genie CLA 2023-02-01 03:57:10 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.