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