mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
sort the apps by title in admin->applications
This commit is contained in:
parent
1433761aa6
commit
3261633231
@ -59,14 +59,7 @@
|
|||||||
|
|
||||||
$sort = $sort ? $sort : 'ASC';
|
$sort = $sort ? $sort : 'ASC';
|
||||||
|
|
||||||
if($sort == 'ASC')
|
uasort($apps,create_function('$a,$b','return strcasecmp($a[\'title\'],$b[\'title\'])'.($sort != 'ASC' ? '* -1' : '').';'));
|
||||||
{
|
|
||||||
ksort($apps);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
krsort($apps);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($start && $offset)
|
if ($start && $offset)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user