summaryrefslogtreecommitdiffstats
path: root/inc/arrayutil.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2022-12-02 15:19:42 +0100
committerSimon Rettberg2022-12-02 15:24:08 +0100
commitef624a48531aae9addcc425b1948ab75bac7b84f (patch)
treed73c5b446e7e19e90f565992efe3b0ec320ffdb6 /inc/arrayutil.inc.php
parent[systemstatus] Handle disk size for local mounts on vm store (diff)
downloadslx-admin-ef624a48531aae9addcc425b1948ab75bac7b84f.tar.gz
slx-admin-ef624a48531aae9addcc425b1948ab75bac7b84f.tar.xz
slx-admin-ef624a48531aae9addcc425b1948ab75bac7b84f.zip
[inc/ArrayUtil] Fix sort flag handling
Diffstat (limited to 'inc/arrayutil.inc.php')
-rw-r--r--inc/arrayutil.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/arrayutil.inc.php b/inc/arrayutil.inc.php
index 9d2dcfae..d930a254 100644
--- a/inc/arrayutil.inc.php
+++ b/inc/arrayutil.inc.php
@@ -42,10 +42,10 @@ class ArrayUtil
* @param string $column
* @return void
*/
- public static function sortByColumn(array &$array, string $column, int $sortFlags = SORT_REGULAR)
+ public static function sortByColumn(array &$array, string $column, int $sortOrder = SORT_ASC, int $sortFlags = SORT_REGULAR)
{
$sorter = array_column($array, $column);
- array_multisort($sorter, $sortFlags, $array);
+ array_multisort($sorter, $sortOrder, $sortFlags, $array);
}
/**