X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/0d9c3baea2fb27d3956258e6911ac9439d63effa..f12b52ab39f154152b668b4bd87d02962f3b762d:/login/list.php diff --git a/login/list.php b/login/list.php index 5c551f3..1f049d8 100644 --- a/login/list.php +++ b/login/list.php @@ -8,14 +8,23 @@ foreach ($users as $col => $userdir) { $users[$col] = new User($userdir); } +if (@$Place['order'] == 'seen') { + $order = array_map(function ($col) { return $col->seen; }, $users); +# $order = array_column($users, 'seen'); #TODO php7 simplification + array_multisort($order, SORT_DESC, SORT_NUMERIC, $users); +} + print '