@@ -44,7 +44,7 @@
44 {{ preferences_item_header(language_info, language_label, rtl) }}
44 {{ preferences_item_header(language_info, language_label, rtl) }}
45 <select class="form-control" name='language'>
45 <select class="form-control" name='language'>
46 <option value="all" {% if current_language == 'all' %}selected="selected"{% endif %}>{{ _('Automatic') }}</option>
46 <option value="all" {% if current_language == 'all' %}selected="selected"{% endif %}>{{ _('Automatic') }}</option>
47− {% for lang_id,lang_name,country_name in language_codes %}
47+ {% for lang_id,lang_name,country_name in language_codes | sort(attribute=1) %}
48 <option value="{{ lang_id }}" {% if lang_id == current_language %}selected="selected"{% endif %}>{{ lang_name }} ({{ country_name }}) - {{ lang_id }}</option>
48 <option value="{{ lang_id }}" {% if lang_id == current_language %}selected="selected"{% endif %}>{{ lang_name }} ({{ country_name }}) - {{ lang_id }}</option>
49 {% endfor %}
49 {% endfor %}
@@ -54,7 +54,7 @@
54 {% set locale_info = _('Change the language of the layout') %}
54 {% set locale_info = _('Change the language of the layout') %}
55 {{ preferences_item_header(locale_info, locale_label, rtl) }}
55 {{ preferences_item_header(locale_info, locale_label, rtl) }}
56 <select class="form-control" name='locale'>
56 <select class="form-control" name='locale'>
57− {% for locale_id,locale_name in locales.items() %}
57+ {% for locale_id,locale_name in locales.items() | sort %}
58 <option value="{{ locale_id }}" {% if locale_id == current_locale %}selected="selected"{% endif %}>{{ locale_name }}</option>
58 <option value="{{ locale_id }}" {% if locale_id == current_locale %}selected="selected"{% endif %}>{{ locale_name }}</option>
59 {% endfor %}
59 {% endfor %}