From 29c62c4bbf3c830a7753e9384a7e21d6941f47b6 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 3 Sep 2019 13:16:52 +0100 Subject: [PATCH] Bugfix: Support uncode when sorting all tags --- Changelog.md | 1 + module_index.json | 4 ++-- modules/page-list.php | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) 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":