From 19cd9c50cf733a54928fd08b1fdea8d033240315 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Fri, 7 Apr 2023 18:28:59 +0200 Subject: Updated pages/contacts.inc (automated) --- pages/contacts.inc | 4 ++++ 1 file changed, 4 insertions(+) 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"]); +}); + ?>