diff options
-rw-r--r-- | pages/contacts.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pages/contacts.inc b/pages/contacts.inc index 73232aa..9239274 100644 --- a/pages/contacts.inc +++ b/pages/contacts.inc @@ -49,6 +49,10 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/components/header.inc'; glob $cache = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/addressbook/saved.json"), true); +uasort($contacts, function ($a, $b) { + return strnatcasecmp($a["nick"], $b["nick"]); +}); + ?> <script> |