Bug 570122

Summary: [Package Explorer] Sorting not consistent
Product: [Eclipse Project] JDT Reporter: Marvin Fröhlich <eclipse>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: noopur_gupta
Version: 4.18Keywords: helpwanted, investigate, needinfo
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard: stalebug
Attachments:
Description Flags
Example for wrong sorting
none
Example project none

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.