-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: File sorting based on numbers (with points ) changed in NC 28 #42826
Comments
Same here. Very frustrating for large folders |
Cc @nextcloud/server-frontend |
@szaimen |
I don't know if I should create a separate bug report for it, but the files are in the right order for me, but when I open the preview the order is not correct. Screen.Recording.2024-05-13.at.14.19.24.mov |
The 29.0.1 doesn't fix the problem in https://help.nextcloud.com/t/sorting-doesnt-working/190105! |
You can see from the milestone of the merged PR that the fix will only be available in Nextcloud 29.0.2+ (and 28.0.7+). |
As @autoantwort already mentioned, this sorting problem exists not only in the folder listing in the file browser but also in the file preview. |
@nightcore500 you screenshot is lacking the table headers, from the content it seems like you are sorting by date not name? |
@susnux That is correct. The folder is sorted by date. In the folder view, it is sorted correctly as shown in the screenshot. After IMG20240605 comes IMG20240604. In the preview, however, IMG20240403 suddenly appears after IMG20240605, which is far in the past. I have just sorted by name. It then no longer seems to occur. |
Yes if you sort by "Modified" then the mtime of the files is checked not the filename, if you sort by "Name" then the filename is taken into account. |
@susnux Thank you for your help. But after IMG20240605 the file named IMG20240403 is displayed whose mtime does not come after that of IMG20240605. The files are also sorted correctly by mtime in the file browser. IMG20240403 also correctly appears there much later. But not in the preview? |
I am not sure if I understand you here correctly, this issue is just about the files list. If you have issues with the "viewer" (that one that opens if you click on a file), then this is a different issue and should be reported here: |
Bug description
File sorting based on numbers with points ( YYYY.MM.DD ) has changed in 28.0.1. No problem is 27.1.5
For example, with 3 folders named 2023.01.08, 2023.04.09, 2023.10.12, if I to do descending sort order or ascending, 2023.01.08 will be in the middle, not at the beginning or the end.
If you replace points with hyphens (2023-01-08, 2023-04-09, 2023-10-12), 2023-01-08 will be at beginning or at the end.
Steps to reproduce
1.Create 3 folder named 2023.01.08, 2023.04.09, 2023.10.12
2.Clich on file sort by name
3.
Expected behavior
NOK : Descending sort order or ascending, 2023.01.08 will be in the middle, not at the beginning or the end.
OK : Replace points with hyphens (2023-01-08, 2023-04-09, 2023-10-12), 2023-01-08 will be at beginning or at the end.
Installation method
Community Manual installation with Archive
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: