mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
select_list/select_box: force sub-options at the end when sorting
This commit is contained in:
parent
a9d00cd3c1
commit
a8e0707e7a
1 changed files with 4 additions and 2 deletions
|
@ -193,14 +193,16 @@ class LSattr_html_select_list extends LSattr_html{
|
|||
**/
|
||||
protected static function _sortTwoValuesAsc(&$va,&$vb) {
|
||||
if (is_array($va)) {
|
||||
$nva=$va['label'];
|
||||
// Force sub-options at the end
|
||||
$nva='ZZZZ'.$va['label'];
|
||||
}
|
||||
else {
|
||||
$nva=$va;
|
||||
}
|
||||
|
||||
if (is_array($vb)) {
|
||||
$nvb=$vb['label'];
|
||||
// Force sub-options at the end
|
||||
$nvb='ZZZZ'.$vb['label'];
|
||||
}
|
||||
else {
|
||||
$nvb=$vb;
|
||||
|
|
Loading…
Reference in a new issue