From 071c426905dc545b48b8ad811581fd2a87f6b5ef Mon Sep 17 00:00:00 2001 From: Pascal Corpet Date: Sat, 5 Jun 2010 14:28:46 +0200 Subject: [PATCH] Sorts language alphabetically in skill tab. Closes #1081 --- ChangeLog | 1 + modules/profile/skills.inc.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b4da04f..7226b97 100644 --- a/ChangeLog +++ b/ChangeLog @@ -29,6 +29,7 @@ Bug/Wish: - #450: Adds marital name, thus ordinary name can be any name -JAC - #670: Adds Outlook CSV format for birthdays and contacts -Car - #891: Improves education display -JAC + - #1081: Sorts language alphabetically in skill tab -Car * XnetLists: - #1010: Prevent empty list creation -Car diff --git a/modules/profile/skills.inc.php b/modules/profile/skills.inc.php index 3811e22..4a8c579 100644 --- a/modules/profile/skills.inc.php +++ b/modules/profile/skills.inc.php @@ -97,7 +97,8 @@ class ProfileSettingSkills extends ProfilePage 'bonne connaissance' => 'bonne connaissance', 'expert' => 'expert')); $page->assign('lang_list', XDB::iterator("SELECT id, langue_fr - FROM profile_langskill_enum")); + FROM profile_langskill_enum + ORDER BY langue_fr")); $page->assign('lang_level', array(1 => 'connaissance basique', 2 => 'maîtrise des bases', 3 => 'maîtrise limitée', -- 2.1.4