From f65200d69aeb6d373181d9db50d9489020ad36e5 Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 29 Jan 2024 15:12:50 +0200 Subject: [PATCH] sort rooms by time updated --- src/controller/room.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controller/room.php b/src/controller/room.php index 69d1030..abb1c40 100644 --- a/src/controller/room.php +++ b/src/controller/room.php @@ -89,6 +89,7 @@ class Room [ 'name' => $namespace['displayName'], 'date' => $date, + 'time' => $time, 'total' => $total ]; } @@ -125,6 +126,7 @@ class Room $pending['namespace'] ), 'date' => $date, + 'time' => $time, 'total' => $total ]; } @@ -133,7 +135,7 @@ class Room array_multisort( array_column( $namespaces, - 'total' + 'time' ), SORT_DESC, $namespaces