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:
parent
80cdb40fb2
commit
29c62c4bbf
3 changed files with 6 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -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": []
|
||||
},
|
||||
|
|
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue