Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-03-01 23:04:45 +0300
committerChristopher Ng <chrng8@gmail.com>2022-03-01 23:04:45 +0300
commitd7aa293866a67bf9c0a5bef6b0b31271d6103211 (patch)
treea103e33c8dd2e988d5a842d564373203fa7094bd /apps
parent3979ff5917fdeeb0d091df878e0c1fe1050b5063 (diff)
Show most recently deleted files first in trash canbackport/29611/stable20
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps')
-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 8d75ac21658..d5b5e3ffad9 100644
--- a/apps/files_trashbin/lib/Trash/TrashManager.php
+++ b/apps/files_trashbin/lib/Trash/TrashManager.php
@@ -48,7 +48,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;
}