Fix inconsistent NULL ordering with PGSQL <-> MySQL

This commit is contained in:
Tomaž Jerman
2022-02-07 09:21:31 +01:00
parent 6777576948
commit 38a32ddeb3
24 changed files with 27 additions and 24 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ func (s Store) {{ toggleExport .Search.Export "Search" $.Types.Plural }}(ctx con
{{ else if $.Search.EnableSorting }}
// Apply sorting expr from filter to query
if q, err = setOrderBy(q, sort, s.sortable{{ export $.Types.Singular }}Columns()); err != nil {
if q, err = setOrderBy(q, sort, s.sortable{{ export $.Types.Singular }}Columns(), s.Config().SqlSortHandler); err != nil {
return err
}
{{ end }}