diff --git a/controller/action/DownloadActions.class.php b/controller/action/DownloadActions.class.php index 892094bf..fd114212 100644 --- a/controller/action/DownloadActions.class.php +++ b/controller/action/DownloadActions.class.php @@ -28,7 +28,7 @@ class DownloadActions extends Actions return ['page/404']; } - ksort($bucket); + krsort($bucket); return Controller::redirect("http://$bucketName/" . array_keys($bucket)[0], 302); }