Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit 01cda69

Browse files
committed
Fix left users order
1 parent ed8ff76 commit 01cda69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infra/store/user/user_store.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (s *userStoreImpl) ListPublicUsers(subName string, minUserID model.UserID,
103103
qm.Where("? <= users.id", minUserID),
104104
qm.Where("profiles.profile_scope = ?", model.Public),
105105
qm.Limit(limit + 1),
106-
qm.OrderBy("users.id"),
106+
qm.OrderBy("profiles.left, users.id"),
107107
}
108108
mods = append(mods, s.subNameQuery(subName)...)
109109

0 commit comments

Comments
 (0)