From d1182c62431b181aa1d90cd1a7b87d12f73f26fc Mon Sep 17 00:00:00 2001 From: tracer Date: Thu, 27 Jan 2022 15:15:42 +0100 Subject: [PATCH] added order Signed-off-by: tracer --- src/Controller/NameserverController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Controller/NameserverController.php b/src/Controller/NameserverController.php index 4805c7e..85fbc88 100644 --- a/src/Controller/NameserverController.php +++ b/src/Controller/NameserverController.php @@ -23,7 +23,8 @@ class NameserverController { $sql = " SELECT id, name, a, aaaa, apikey - FROM " . DatabaseConnection::TABLE_NAMESERVERS; + FROM " . DatabaseConnection::TABLE_NAMESERVERS . " + ORDER BY name"; try { $statement = $this->databaseConnection->getConnection()->prepare(query: $sql);