Make sorting lists by name/title case-insensitive (#2993)

* Make sort by order_* fields case-insensitive.

* Sort internet radios by name case-insensitive
This commit is contained in:
Deluan Quintão 2024-05-09 07:08:15 -04:00 committed by GitHub
parent 6408dda948
commit c4b05dac28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 52 additions and 28 deletions

View file

@ -26,6 +26,9 @@ func NewRadioRepository(ctx context.Context, db dbx.Builder) model.RadioReposito
r.filterMappings = map[string]filterFunc{
"name": containsFilter,
}
r.sortMappings = map[string]string{
"name": "(name collate nocase), name",
}
return r
}