Skip to content

Conversation

@leftybournes
Copy link
Contributor

@leftybournes leftybournes commented Oct 17, 2025

This fixes the issue of team folders not being sorted properly when there are more than one page of folders (>50 folders), especially when a folder name starts with an underscore. When a folder name starts with an underscore, it disappears until the last page is revealed and then suddenly appears in the first page. This also naturally sorts folder names with numbers.

@leftybournes leftybournes force-pushed the leftybournes/fix/sorting branch from 61560a1 to ad65e30 Compare October 21, 2025 10:10
Copy link

@salmart-dev salmart-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and the current fix works. I added another comment for an optimization to avoid scanning the names of folders up to 8 times just to find out if they have an _ at the beginning or not.

@leftybournes leftybournes force-pushed the leftybournes/fix/sorting branch from ad65e30 to 318bc21 Compare October 22, 2025 09:06
@artonge
Copy link
Contributor

artonge commented Oct 28, 2025

Should have seen it coming, you need to update the cypress version about files_versions. You can copy past what I did in https://github.com/nextcloud/server/pull/55965/files#diff-2624570d4890032e1950b55bc6ab8d8e4bbc2e5d9f86f200254e05c7d64863a5

@leftybournes
Copy link
Contributor Author

Should have seen it coming, you need to update the cypress version about files_versions. You can copy past what I did in https://github.com/nextcloud/server/pull/55965/files#diff-2624570d4890032e1950b55bc6ab8d8e4bbc2e5d9f86f200254e05c7d64863a5

Thank you for the help. Here's the PR that does the same. There's progress but it's still failing.

#4110

Copy link
Member

@provokateurin provokateurin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move this logic to a dedicated method, so it's not duplicated? This calls for further issues down the line

Signed-off-by: Kent Delante <kent.delante@proton.me>
@leftybournes leftybournes force-pushed the leftybournes/fix/sorting branch from 318bc21 to 502050b Compare November 4, 2025 06:32
@provokateurin provokateurin merged commit fce3192 into master Nov 4, 2025
48 of 52 checks passed
@provokateurin provokateurin deleted the leftybournes/fix/sorting branch November 4, 2025 13:00
@provokateurin
Copy link
Member

/backport to stable32

@provokateurin
Copy link
Member

/backport to stable31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants