feat: sort contacts sidebar ignoring case

This commit is contained in:
Robert Perce 2026-04-07 10:49:46 -05:00
parent 1206e211d5
commit 559c1f1760
2 changed files with 11 additions and 2 deletions

View file

@ -50,7 +50,7 @@ impl FromRequestParts<AppState> for Layout {
left join names n on c.id = n.contact_id
where n.sort is null or n.sort = 0
and c.active = true
order by name asc",
order by name collate nocase asc",
)
.fetch_all(&state.db(&user).pool)
.await?;
@ -63,7 +63,7 @@ impl FromRequestParts<AppState> for Layout {
left join names n on c.id = n.contact_id
where n.sort is null or n.sort = 0
and c.active = false
order by name asc",
order by name collate nocase asc",
)
.fetch_all(&state.db(&user).pool)
.await?;