diff options
author | Joe Robinson <joe@lc8n.com> | 2014-08-05 17:28:37 +0100 |
---|---|---|
committer | Joe Robinson <joe@lc8n.com> | 2014-08-05 17:28:37 +0100 |
commit | f3152504a185c7930b2d5750634fa7d00d1ae41e (patch) | |
tree | d873e093ab014701e747e1c80d63c270bc8a11cc | |
parent | 6e40e841bcf21fb80bd8432baeaf8def494e8af6 (diff) |
Implemented sort by name
-rw-r--r-- | index.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |