X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/d254e367684dcbde047f8f76fd9df3dd9ed3cf34..ae6f8a065aa433337311d74bc81cb05526246f88:/login/list.php diff --git a/login/list.php b/login/list.php index cae89f0..d3b1f17 100644 --- a/login/list.php +++ b/login/list.php @@ -8,6 +8,12 @@ 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 '