1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-25 17:23:00 +00:00

Bugfix: Support uncode when sorting all tags

This commit is contained in:
Starbeamrainbowlabs 2019-09-03 13:16:52 +01:00
parent 80cdb40fb2
commit 29c62c4bbf
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
3 changed files with 6 additions and 4 deletions

View file

@ -19,6 +19,7 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t
- Added aria label to user preferences button
- Hide site logo from screen readers
- Lists of pages that have a specific tag will now be sorted alphabetically (unicode characters should be handled correctly too)
- Support Unicode characters when sorting the list of all tags
### Changed
- Made `build.sh` build script more robust, especially when generating the documentation.

View file

@ -254,10 +254,10 @@
{
"id": "page-list",
"name": "Page list",
"version": "0.11.1",
"version": "0.11.2",
"author": "Starbeamrainbowlabs",
"description": "Adds a page that lists all the pages in the index along with their metadata.",
"lastupdate": 1567512802,
"lastupdate": 1567513003,
"optional": false,
"extra_data": []
},

View file

@ -1,7 +1,7 @@
<?php
register_module([
"name" => "Page list",
"version" => "0.11.1",
"version" => "0.11.2",
"author" => "Starbeamrainbowlabs",
"description" => "Adds a page that lists all the pages in the index along with their metadata.",
"id" => "page-list",
@ -92,7 +92,8 @@ register_module([
// Render a list of all tags
$all_tags = get_all_tags();
sort($all_tags, SORT_NATURAL);
$sorter = new Collator("");
$sorter->sort($all_tags, Collator::SORT_STRING);
switch($format) {
case "html":