diff --git a/lib/private/share/share.php b/lib/private/share/share.php index 883fbd1b29..a3de8ebc0e 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -1211,6 +1211,7 @@ class Share extends \OC\Share\Constants { } } else { $queryLimit = null; + $where .= ' ORDER BY `*PREFIX*share`.`id` ASC'; } $select = self::createSelectStatement($format, $fileDependent, $uidOwner); $root = strlen($root);