Skip to content

Commit

Permalink
Naturally sort all tags list alphabetically. Fixes #88.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrl committed Aug 18, 2016
1 parent 5dea574 commit 7723c52
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4044,6 +4044,8 @@ function errorimage($text, $target_size)
}
}

sort($all_tags, SORT_NATURAL);

$content = "<h1>All tags</h1>
<ul class='tag-list'>\n";
foreach($all_tags as $tag)
Expand Down
2 changes: 1 addition & 1 deletion module_index.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
"author": "Starbeamrainbowlabs",
"description": "Adds a page that lists all the pages in the index along with their metadata.",
"id": "page-list",
"lastupdate": 1466010261,
"lastupdate": 1471546961,
"optional": false
},
{
Expand Down
2 changes: 2 additions & 0 deletions modules/page-list.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
}
}

sort($all_tags, SORT_NATURAL);

$content = "<h1>All tags</h1>
<ul class='tag-list'>\n";
foreach($all_tags as $tag)
Expand Down

0 comments on commit 7723c52

Please sign in to comment.