1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-26 05:32:59 +00:00

Naturally sort all tags list alphabetically. Fixes #88.

This commit is contained in:
Starbeamrainbowlabs 2016-08-18 19:05:16 +00:00
parent 5dea574825
commit 7723c52d7e
3 changed files with 5 additions and 1 deletions

View file

@ -4044,6 +4044,8 @@ register_module([
} }
} }
sort($all_tags, SORT_NATURAL);
$content = "<h1>All tags</h1> $content = "<h1>All tags</h1>
<ul class='tag-list'>\n"; <ul class='tag-list'>\n";
foreach($all_tags as $tag) foreach($all_tags as $tag)

View file

@ -140,7 +140,7 @@
"author": "Starbeamrainbowlabs", "author": "Starbeamrainbowlabs",
"description": "Adds a page that lists all the pages in the index along with their metadata.", "description": "Adds a page that lists all the pages in the index along with their metadata.",
"id": "page-list", "id": "page-list",
"lastupdate": 1466010261, "lastupdate": 1471546961,
"optional": false "optional": false
}, },
{ {

2
modules/page-list.php Normal file → Executable file
View file

@ -69,6 +69,8 @@ register_module([
} }
} }
sort($all_tags, SORT_NATURAL);
$content = "<h1>All tags</h1> $content = "<h1>All tags</h1>
<ul class='tag-list'>\n"; <ul class='tag-list'>\n";
foreach($all_tags as $tag) foreach($all_tags as $tag)