diff --git a/app/workers/functions.php b/app/workers/functions.php index 8bf719e607..2485534657 100644 --- a/app/workers/functions.php +++ b/app/workers/functions.php @@ -535,7 +535,7 @@ class FunctionsV1 if(\count($list) > $max) { Console::info('Starting containers cleanup'); - \usort($list, function ($item1, $item2) { + \uasort($list, function ($item1, $item2) { return (int)($item1['appwrite-created'] ?? 0) <=> (int)($item2['appwrite-created'] ?? 0); });