diff --git a/system/functions.php b/system/functions.php index d1184272..e489ffb9 100644 --- a/system/functions.php +++ b/system/functions.php @@ -796,7 +796,7 @@ function get_plugins($disabled = false): array $ret = []; $path = PLUGINS; - foreach(scandir($path, SCANDIR_SORT_DESCENDING) as $file) { + foreach(scandir($path, SCANDIR_SORT_ASCENDING) as $file) { $file_ext = pathinfo($file, PATHINFO_EXTENSION); $file_name = pathinfo($file, PATHINFO_FILENAME); if ($file === '.' || $file === '..' || $file === 'example.json' || $file_ext !== 'json' || is_dir($path . $file)) { diff --git a/system/templates/admin.plugins.html.twig b/system/templates/admin.plugins.html.twig index bffb82f3..d6ffe7b2 100644 --- a/system/templates/admin.plugins.html.twig +++ b/system/templates/admin.plugins.html.twig @@ -38,7 +38,7 @@