fix: add ORDER BY to ListUsers query for deterministic ordering

The query had no ORDER BY clause, causing non-deterministic result
ordering on PostgreSQL where row order is not guaranteed.
This commit is contained in:
kolaente
2026-03-26 16:31:27 +01:00
committed by kolaente
parent a2e19f8d38
commit 39e16653aa

View File

@@ -149,6 +149,7 @@ func ListUsers(s *xorm.Session, search string, currentUser *User, opts *ProjectU
err = s.
Where(cond).
OrderBy("id").
Find(&users)
outer: