summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorPhil Burton <phil@d3r.com>2019-04-02 11:01:48 +0100
committerPhil Burton <phil@d3r.com>2019-04-02 11:01:48 +0100
commit840fcad8b08b266b1c350d46db8e22ea07367902 (patch)
treeb2798e6d18b6cc52d24839fb67e5f1f43e14a6d5 /index.php
parentb57bb1e8bb5fabcba4a2b584f08310c4479d5e6f (diff)
Add default sort back
Diffstat (limited to 'index.php')
-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") {