diff --git a/Changelog.md b/Changelog.md index b861f11..94384a7 100644 --- a/Changelog.md +++ b/Changelog.md @@ -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. diff --git a/module_index.json b/module_index.json index 4d2d0f7..d2f32c9 100755 --- a/module_index.json +++ b/module_index.json @@ -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": [] }, diff --git a/modules/page-list.php b/modules/page-list.php index d32f5c8..9a68f2a 100644 --- a/modules/page-list.php +++ b/modules/page-list.php @@ -1,7 +1,7 @@ "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":