From 0e968ca308a1e4482f22854edbdba12687391ca3 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 25 Sep 2007 21:57:54 +0000 Subject: [PATCH] Fixed ticket #85: Dropdown on /status/CMS should be sorted alphabetically. Now all language dropdowns are sorted by language name rather than language code (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42576 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/LanguageDropdownField.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/forms/LanguageDropdownField.php b/forms/LanguageDropdownField.php index b001ff6d8..3e8b2893f 100755 --- a/forms/LanguageDropdownField.php +++ b/forms/LanguageDropdownField.php @@ -41,7 +41,9 @@ class LanguageDropdownField extends GroupedDropdownField { )); if (isset($alllangs[Translatable::default_lang()])) unset($alllangs[Translatable::default_lang()]); + asort($alllangs); if (count($usedlangs)) { + asort($usedlangs); parent::__construct($name, $title, array( "Used languages" => $usedlangs, "Other languages" => $alllangs