Browse Source

sort rooms by time updated

main
ghost 10 months ago
parent
commit
f65200d69a
  1. 4
      src/controller/room.php

4
src/controller/room.php

@ -89,6 +89,7 @@ class Room @@ -89,6 +89,7 @@ class Room
[
'name' => $namespace['displayName'],
'date' => $date,
'time' => $time,
'total' => $total
];
}
@ -125,6 +126,7 @@ class Room @@ -125,6 +126,7 @@ class Room
$pending['namespace']
),
'date' => $date,
'time' => $time,
'total' => $total
];
}
@ -133,7 +135,7 @@ class Room @@ -133,7 +135,7 @@ class Room
array_multisort(
array_column(
$namespaces,
'total'
'time'
),
SORT_DESC,
$namespaces

Loading…
Cancel
Save