diff --git a/hobo/theme/utils.py b/hobo/theme/utils.py index 3f045fd..507b962 100644 --- a/hobo/theme/utils.py +++ b/hobo/theme/utils.py @@ -16,6 +16,7 @@ import json import os +import unicodedata from django.conf import settings @@ -38,7 +39,12 @@ def get_themes(): if not 'module' in theme: theme['module'] = dirname themes.append(theme) - themes.sort(key=lambda x: x.get('label')) + + def key_function(theme): + label = theme.get('label') + return unicodedata.normalize('NFKD', label.upper()).encode('ascii', 'ignore').decode() + + themes.sort(key=key_function) return themes