feat: sort contacts sidebar ignoring case
This commit is contained in:
parent
1206e211d5
commit
559c1f1760
2 changed files with 11 additions and 2 deletions
|
|
@ -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?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue