summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/index.php b/index.php
index 5c947ac..ed2cdc9 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);