mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-24 23:19:39 -05:00
Sort user teams by main team first, then alphabetically
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
9e0f36d90c
commit
2c1a833b6e
|
|
@ -52,6 +52,8 @@ export function findAllMemberOfByUserId(userId: number) {
|
|||
),
|
||||
])
|
||||
.where("TeamMemberWithSecondary.userId", "=", userId)
|
||||
.orderBy("TeamMemberWithSecondary.isMainTeam", "desc")
|
||||
.orderBy("Team.name", "asc")
|
||||
.execute();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user