Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Deluan Quintão 2026-02-17 09:30:18 -05:00 committed by GitHub
parent 929e7193b4
commit 86c326bd4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,7 +71,7 @@ func (r *sqlRepository) registerModel(instance any, filters map[string]filterFun
//
// If PreferSortTags is enabled, it will map the order fields to the corresponding sort expression,
// which gives precedence to sort tags.
// Ex: order_title => (coalesce(nullif(sort_title,"),order_title) collate NATURALSORT)
// Ex: order_title => (coalesce(nullif(sort_title,''), order_title) collate NATURALSORT)
// To avoid performance issues, indexes should be created for these sort expressions
//
// All order_* fields are wrapped with NATURALSORT collation to enable natural number ordering