From 8b60daff856177ed3f8c4804b8bc774393800287 Mon Sep 17 00:00:00 2001
From: sb0001 <48289594+sb0001@users.noreply.github.com>
Date: Thu, 7 Dec 2023 22:32:54 +0100
Subject: [PATCH] Update add-content.html.php
sort the dropdown list of categories alphabetically when adding or editing a post
---
system/admin/views/add-content.html.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/system/admin/views/add-content.html.php b/system/admin/views/add-content.html.php
index 5a2bbfd..1f430f0 100644
--- a/system/admin/views/add-content.html.php
+++ b/system/admin/views/add-content.html.php
@@ -9,6 +9,7 @@ if ($type != 'is_post' && $type != 'is_image' && $type != 'is_video' && $type !=
}
$desc = get_category_info(null);
+asort($desc);
$tags = tag_cloud(true);
$tagslang = "content/data/tags.lang";
@@ -217,4 +218,4 @@ $( function() {
-
\ No newline at end of file
+