mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fix
This commit is contained in:
parent
68654804b4
commit
1460e63f22
@ -6232,13 +6232,13 @@ function arrayOutputSorting($sort, $sortField)
|
|||||||
return function ($a, $b) use ($sort, $sortField) {
|
return function ($a, $b) use ($sort, $sortField) {
|
||||||
if ($sort === 'up') {
|
if ($sort === 'up') {
|
||||||
if (is_string($a[$sortField]) === true) {
|
if (is_string($a[$sortField]) === true) {
|
||||||
return strnatcmp($a[$sortField], $b[$sortField]);
|
return strcasecmp($a[$sortField], $b[$sortField]);
|
||||||
} else {
|
} else {
|
||||||
return ($a[$sortField] - $b[$sortField]);
|
return ($a[$sortField] - $b[$sortField]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (is_string($a[$sortField]) === true) {
|
if (is_string($a[$sortField]) === true) {
|
||||||
return strnatcmp($b[$sortField], $a[$sortField]);
|
return strcasecmp($b[$sortField], $a[$sortField]);
|
||||||
} else {
|
} else {
|
||||||
return ($a[$sortField] + $b[$sortField]);
|
return ($a[$sortField] + $b[$sortField]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user