diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-05-29 12:58:22 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-05-29 14:01:07 +0200 |
commit | 32585696be70dba987dbad299b22a05f9a820a49 (patch) | |
tree | 202537f9e982084a2f22c8452c7fd39374f9c8a5 /tpl | |
parent | d47225ce9ef1a1ae31d89e8aed07a6fcc9d524f2 (diff) |
Fix potential deadlock in ByParam
Fixes #11039
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/collections/sort.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tpl/collections/sort.go b/tpl/collections/sort.go index 83029b310..4a2106039 100644 --- a/tpl/collections/sort.go +++ b/tpl/collections/sort.go @@ -46,7 +46,7 @@ func (ns *Namespace) Sort(l any, args ...any) (any, error) { return nil, errors.New("can't sort " + reflect.ValueOf(l).Type().String()) } - collator := langs.GetCollator(ns.deps.Conf.Language()) + collator := langs.GetCollator1(ns.deps.Conf.Language()) // Create a list of pairs that will be used to do the sort p := pairList{Collator: collator, sortComp: ns.sortComp, SortAsc: true, SliceType: sliceType} |