Files
zitadel/internal/query
Livio Spring a3c0d53c79 fix(api): sorting on list users endpoints (#10750)
# Which Problems Are Solved

#10415 added the possibility to filter users based on metadata. To
prevent duplicate results an sql `DISTINCT` was added. This resulted in
issues if the list was sorted on string columns like `username` or
`displayname`, since they are sorted using `lower`. Using `DISTINCT`
requires the `order by` column to be part of the `SELECT` statement.

# How the Problems Are Solved

Added the order by column to the statement.

# Additional Changes

None

# Additional Context

- relates to #10415
- backport to v4.x

---------

Co-authored-by: Silvan <27845747+adlerhurst@users.noreply.github.com>
(cherry picked from commit 2c0ee0008f)
2025-09-18 12:18:33 +02:00
..
2025-04-02 16:53:06 +02:00
2025-06-27 17:25:44 +02:00
2025-03-31 12:45:11 +02:00
2024-04-16 11:19:17 +00:00
2025-04-02 16:53:06 +02:00
2025-09-18 06:46:37 +02:00
2025-04-02 16:53:06 +02:00