Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » Working Tree must not be numerical sorted(Like other views in Eclipse, the working tree sort must be sorted literally.)
Working Tree must not be numerical sorted [message #1854852] Wed, 14 September 2022 11:16 Go to next message
Eclipse UserFriend
Hi,
In my Eclipse instance the installation of eGit is used. When cloning a Git repository, the Working Tree in the Git Repositories view shows all folders correct.
However, the files within these folders are sorted numeric instead of literal. The setting in Windows where the numeric sort is disabled in the Windows Explorer configuration. This does not solve the sorting issue in Eclipse.

What should I do to get the literal sorting order activated?

I hope you can help me out.

Thanks,
Henk
Re: Working Tree must not be numerical sorted [message #1854909 is a reply to message #1854852] Sat, 17 September 2022 10:11 Go to previous messageGo to next message
Eclipse UserFriend
Looking through the code I see that natural sorting is hard-coded.

The same sorting should be used for folders, though.

Do the Project Explorer or Package Explorer in Eclipse respect the Windows setting?
Re: Working Tree must not be numerical sorted [message #1854926 is a reply to message #1854909] Mon, 19 September 2022 01:29 Go to previous messageGo to next message
Eclipse UserFriend
The Project Explorer does respect the the Windows setting. The folders in that view contain the files sorted in the correct order.
It is just the files in the folders in the Working Tree of the Git Repositories view where the sorting is incorrect.
Re: Working Tree must not be numerical sorted [message #1854959 is a reply to message #1854926] Tue, 20 September 2022 08:47 Go to previous message
Eclipse UserFriend
Henk van der Wijk wrote on Mon, 19 September 2022 05:29
The Project Explorer does respect the the Windows setting. The folders in that view contain the files sorted in the correct order.


So when you change the Windows setting, the sorting order in the project explorer changes? If so, when? Right away, after a refresh, when the view is closed and re-opened, or only after an Eclipse re-start? (I don't have Windows, so I can't easily check myself.)

I wonder where in the Eclipse Platform code that is. If possible, the Git Repositories view should behave similarly, so if Package/Project explorer pick up that Windows setting, then so should the EGit view.
Previous Topic:SSHSessionFactory with Auth fail with token
Next Topic:Most efficient way to retrieve diffentries across all commits
Goto Forum:
  


Current Time: Mon May 19 21:11:45 EDT 2025

Powered by FUDForum. Page generated in 0.03453 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top