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

Loading…
Cancel
Save