aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2016-12-19 21:40:42 +0100
committerGitHub <noreply@github.com>2016-12-19 21:40:42 +0100
commit084bddf8ae3877eb615faaa87b5240b8e1b8a5d4 (patch)
treee32df378a52251b5ca0d37ce0dbabcfad54bec6b
parent1287e624dd662db51b591b3eeb504ad4ba8a5c1a (diff)
parent000ba6484f6789d9eecef303d031916cdc433827 (diff)
downloadnextcloud-server-084bddf8ae3877eb615faaa87b5240b8e1b8a5d4.tar.gz
nextcloud-server-084bddf8ae3877eb615faaa87b5240b8e1b8a5d4.zip
Merge pull request #2764 from nextcloud/fix-groupshare-sharetimesort
[downstream] When grouping shares, sort by stime then id (#26777)
-rw-r--r--apps/files_sharing/lib/MountProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/MountProvider.php b/apps/files_sharing/lib/MountProvider.php
index 40d2fb27535..5c5d57057b2 100644
--- a/apps/files_sharing/lib/MountProvider.php
+++ b/apps/files_sharing/lib/MountProvider.php
@@ -123,7 +123,7 @@ class MountProvider implements IMountProvider {
// sort by stime, the super share will be based on the least recent share
foreach ($tmp as &$tmp2) {
@usort($tmp2, function($a, $b) {
- if ($a->getShareTime() < $b->getShareTime()) {
+ if ($a->getShareTime() <= $b->getShareTime()) {
return -1;
}
return 1;