Merge pull request #656 from bttrx/patch-2

Sort categories alphabetically in 'Categories' view by @bttrx
This commit is contained in:
Dan 2023-12-10 07:00:25 +07:00 committed by GitHub
commit 6a5cca37af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,8 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php $desc = get_category_info(null); ?>
<?php
$desc = get_category_info(null);
asort($desc);
?>
<h2><?php echo i18n("Categories");?></h2>
<br>
<a class="btn btn-primary " href="<?php echo site_url();?>add/category"><?php echo i18n('Add_category');?></a>