summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
diff options
context:
space:
mode:
authorOrzu Ionut <orzu.ionut@gmail.com>2021-11-09 16:07:36 +0200
committerOrzu Ionut <orzu.ionut@gmail.com>2021-11-09 16:59:16 +0200
commit33c1c5c91b11f3401283274579747efee51013e3 (patch)
tree0f8a5f12b5c8d3d326dfb68c34716231bc0c7b9e /apps/files_trashbin/lib
parent81b60c14c985b0a46fd31733db2add9efd7bedba (diff)
downloadnextcloud-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.php2
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;
}