Payment providers: Ignore case when sorting by name

This commit is contained in:
Raphael Michel
2023-12-20 13:51:09 +01:00
parent 9e3ce4f1ec
commit aa121b900e
3 changed files with 3 additions and 3 deletions

View File

@@ -1064,7 +1064,7 @@ class Event(EventMixin, LoggedModel):
providers[pp.identifier] = pp
self._cached_payment_providers = OrderedDict(sorted(
providers.items(), key=lambda v: (-v[1].priority, str(v[1].verbose_name))
providers.items(), key=lambda v: (-v[1].priority, str(v[1].verbose_name).title())
))
return self._cached_payment_providers