Browse Source

Show most recently deleted files first in trash can

Signed-off-by: Christopher Ng <chrng8@gmail.com>
Christopher Ng 2 years ago
parent
commit
d7aa293866
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/files_trashbin/lib/Trash/TrashManager.php

+ 1 - 1
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;
 	}