mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 16:33: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
|
- Added aria label to user preferences button
|
||||||
- Hide site logo from screen readers
|
- 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)
|
- 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
|
### Changed
|
||||||
- Made `build.sh` build script more robust, especially when generating the documentation.
|
- Made `build.sh` build script more robust, especially when generating the documentation.
|
||||||
|
|
|
@ -254,10 +254,10 @@
|
||||||
{
|
{
|
||||||
"id": "page-list",
|
"id": "page-list",
|
||||||
"name": "Page list",
|
"name": "Page list",
|
||||||
"version": "0.11.1",
|
"version": "0.11.2",
|
||||||
"author": "Starbeamrainbowlabs",
|
"author": "Starbeamrainbowlabs",
|
||||||
"description": "Adds a page that lists all the pages in the index along with their metadata.",
|
"description": "Adds a page that lists all the pages in the index along with their metadata.",
|
||||||
"lastupdate": 1567512802,
|
"lastupdate": 1567513003,
|
||||||
"optional": false,
|
"optional": false,
|
||||||
"extra_data": []
|
"extra_data": []
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
register_module([
|
register_module([
|
||||||
"name" => "Page list",
|
"name" => "Page list",
|
||||||
"version" => "0.11.1",
|
"version" => "0.11.2",
|
||||||
"author" => "Starbeamrainbowlabs",
|
"author" => "Starbeamrainbowlabs",
|
||||||
"description" => "Adds a page that lists all the pages in the index along with their metadata.",
|
"description" => "Adds a page that lists all the pages in the index along with their metadata.",
|
||||||
"id" => "page-list",
|
"id" => "page-list",
|
||||||
|
@ -92,7 +92,8 @@ register_module([
|
||||||
// Render a list of all tags
|
// Render a list of all tags
|
||||||
$all_tags = get_all_tags();
|
$all_tags = get_all_tags();
|
||||||
|
|
||||||
sort($all_tags, SORT_NATURAL);
|
$sorter = new Collator("");
|
||||||
|
$sorter->sort($all_tags, Collator::SORT_STRING);
|
||||||
|
|
||||||
switch($format) {
|
switch($format) {
|
||||||
case "html":
|
case "html":
|
||||||
|
|
Loading…
Reference in a new issue