2012-07-26 Sergio Martin <sergio.martin@artica.es>

* include/functions_html.php: Change the sort function
	of the html_print_select to use natural order (merging 
	lower and upper case chars)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6813 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2012-07-26 09:28:00 +00:00
parent c810e3ec39
commit bf7356ecb3
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2012-07-26 Sergio Martin <sergio.martin@artica.es>
* include/functions_html.php: Change the sort function
of the html_print_select to use natural order (merging
lower and upper case chars)
2012-07-26 Hirofumi Kosaka <kosaka@rworks.jp> 2012-07-26 Hirofumi Kosaka <kosaka@rworks.jp>
* godmode/agentes/module_manager_editor_common.php: * godmode/agentes/module_manager_editor_common.php:

View File

@ -326,7 +326,8 @@ function html_print_select ($fields, $name, $selected = '', $script = '',
if (is_array($fields) && !empty ($fields)) { if (is_array($fields) && !empty ($fields)) {
if ($sort !== false) { if ($sort !== false) {
asort ($fields); // Sorting the fields in natural way and case insensitive preserving keys
uasort($fields, "strnatcasecmp");
} }
$lastopttype = ''; $lastopttype = '';
foreach ($fields as $value => $label) { foreach ($fields as $value => $label) {