summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/index.php b/index.php
index dbc9dea..fec487b 100644
--- a/index.php
+++ b/index.php
@@ -95,6 +95,9 @@ $nameurl = "?C=N;O=A";
$modifiedurl = "?C=M;O=A";
$sizeurl = "?C=S;O=A";
+// Set default sort
+$sort = ['S', 'A'];
+
if (isset($_GET['C'])) {
$sort = preg_split("/;O=/", $_GET['C']);
if ($_GET['C'] == "N;O=A") {