diff --git a/system/admin/views/add-content.html.php b/system/admin/views/add-content.html.php index 25aa1f3..b8530bc 100644 --- a/system/admin/views/add-content.html.php +++ b/system/admin/views/add-content.html.php @@ -9,7 +9,6 @@ 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"; diff --git a/system/admin/views/categories.html.php b/system/admin/views/categories.html.php index cc72d32..2e67526 100644 --- a/system/admin/views/categories.html.php +++ b/system/admin/views/categories.html.php @@ -1,7 +1,6 @@


diff --git a/system/admin/views/edit-content.html.php b/system/admin/views/edit-content.html.php index 7035b57..7fda7b2 100644 --- a/system/admin/views/edit-content.html.php +++ b/system/admin/views/edit-content.html.php @@ -9,7 +9,6 @@ if (isset($p->file)) { $filename = $file_path['dirname'] . '/' . $file_path['basename']; $desc = get_category_info(null); -asort($desc); $content = file_get_contents($filename); $oldtitle = get_content_tag('t', $content, 'Untitled'); diff --git a/system/includes/functions.php b/system/includes/functions.php index ba3cd05..a9f7b19 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -865,8 +865,8 @@ function get_category_info($category = null) $tmp = array(); $cslug= get_category_slug(); - if (!empty($cslug)) { + asort($cslug); if (is_null($category)) { foreach ($cslug as $key => $c){ $ctmp = read_category_info($c); @@ -894,8 +894,8 @@ function get_category_info($category = null) function read_category_info($category) { - $cFiles = get_category_files(); $tmp = array(); + $cFiles = get_category_files(); if (!empty($cFiles)) { foreach ($cFiles as $index => $v) { if (stripos($v['basename'], $category . '.md') !== false) {