Skip to content

fix(backend): Keep the display name ordering when searching guests - #1668

Merged
CarlSchwan merged 1 commit into
nextcloud:mainfrom
solracsf:fix/display-name-sort-search
Aug 21, 2026
Merged

fix(backend): Keep the display name ordering when searching guests#1668
CarlSchwan merged 1 commit into
nextcloud:mainfrom
solracsf:fix/display-name-sort-search

Conversation

@solracsf

Copy link
Copy Markdown
Member

orderBy() replaces the order-by clause instead of appending to it, so the second call dropped the display name ordering and left the results sorted by user id only. With hashed user ids that ordering is effectively random, and it also decides which guests a limited search returns.

@solracsf solracsf added bug Something isn't working 3. to review Waiting for reviews labels Aug 16, 2026
@CarlSchwan
CarlSchwan enabled auto-merge August 21, 2026 08:23
@solracsf
solracsf disabled auto-merge August 21, 2026 08:52
orderBy() replaces the order-by clause instead of appending to it, so
the second call dropped the display name ordering and left the results
sorted by user id only. With hashed user ids that ordering is
effectively random, and it also decides which guests a limited search
returns.

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
@solracsf
solracsf force-pushed the fix/display-name-sort-search branch from 7cfe3e4 to da5c7c9 Compare August 21, 2026 08:55
@CarlSchwan
CarlSchwan merged commit 8e32bf2 into nextcloud:main Aug 21, 2026
55 checks passed
@solracsf
solracsf deleted the fix/display-name-sort-search branch August 21, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants