diff options
author | Orzu Ionut <orzu.ionut@gmail.com> | 2021-11-09 16:07:36 +0200 |
---|---|---|
committer | Orzu Ionut <orzu.ionut@gmail.com> | 2021-11-09 16:59:16 +0200 |
commit | 33c1c5c91b11f3401283274579747efee51013e3 (patch) | |
tree | 0f8a5f12b5c8d3d326dfb68c34716231bc0c7b9e /apps/files_trashbin/lib | |
parent | 81b60c14c985b0a46fd31733db2add9efd7bedba (diff) | |
download | nextcloud-server-33c1c5c91b11f3401283274579747efee51013e3.tar.gz nextcloud-server-33c1c5c91b11f3401283274579747efee51013e3.zip |
Show most recently deleted files first in trash can
Signed-off-by: Orzu Ionut <orzu.ionut@gmail.com>
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r-- | apps/files_trashbin/lib/Trash/TrashManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/Trash/TrashManager.php b/apps/files_trashbin/lib/Trash/TrashManager.php index 7f4be89efdc..cc73ce09ccb 100644 --- a/apps/files_trashbin/lib/Trash/TrashManager.php +++ b/apps/files_trashbin/lib/Trash/TrashManager.php @@ -47,7 +47,7 @@ class TrashManager implements ITrashManager { return array_merge($items, $backend->listTrashRoot($user)); }, []); usort($items, function (ITrashItem $a, ITrashItem $b) { - return $a->getDeletedTime() - $b->getDeletedTime(); + return $b->getDeletedTime() - $a->getDeletedTime(); }); return $items; } |