diff --git a/apps/files_sharing/lib/MountProvider.php b/apps/files_sharing/lib/MountProvider.php index 43306fe2e7..82d74479d4 100644 --- a/apps/files_sharing/lib/MountProvider.php +++ b/apps/files_sharing/lib/MountProvider.php @@ -156,10 +156,12 @@ 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()) { - return -1; + $aTime = $a->getShareTime()->getTimestamp(); + $bTime = $b->getShareTime()->getTimestamp(); + if ($aTime === $bTime) { + return $a->getId() < $b->getId() ? -1 : 1; } - return 1; + return $aTime < $bTime ? -1 : 1; }); $result[] = $tmp2; } diff --git a/lib/public/Share/IShare.php b/lib/public/Share/IShare.php index b4d66614ce..12b807400f 100644 --- a/lib/public/Share/IShare.php +++ b/lib/public/Share/IShare.php @@ -550,7 +550,7 @@ interface IShare { * This is mainly for public shares. It will signal that the share page should * hide download buttons etc. * - * @param bool $ro + * @param bool $hide * @return IShare * @since 15.0.0 */