summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Robinson <joe@lc8n.com>2014-08-05 17:28:37 +0100
committerJoe Robinson <joe@lc8n.com>2014-08-05 17:28:37 +0100
commitf3152504a185c7930b2d5750634fa7d00d1ae41e (patch)
treed873e093ab014701e747e1c80d63c270bc8a11cc
parent6e40e841bcf21fb80bd8432baeaf8def494e8af6 (diff)
Implemented sort by name
-rw-r--r--index.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/index.php b/index.php
index 982685e..563c225 100644
--- a/index.php
+++ b/index.php
@@ -114,6 +114,12 @@ if (isset($sort)) {
} else {
krsort($new_array);
}
+ } else if ($sort[0] == "N") {
+ if ($sort[1] == "A") {
+ asort($new_array);
+ } else {
+ arsort($new_array);
+ }
}
} else {
krsort($new_array);