<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ezgame.cc/index.php?action=history&amp;feed=atom&amp;title=GW2_Wiki_English_Mirror%3ARequests_for_technical_administration%2FCollation</id>
	<title>GW2 Wiki English Mirror:Requests for technical administration/Collation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ezgame.cc/index.php?action=history&amp;feed=atom&amp;title=GW2_Wiki_English_Mirror%3ARequests_for_technical_administration%2FCollation"/>
	<link rel="alternate" type="text/html" href="https://wiki.ezgame.cc/index.php?title=GW2_Wiki_English_Mirror:Requests_for_technical_administration/Collation&amp;action=history"/>
	<updated>2026-07-17T11:32:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://wiki.ezgame.cc/index.php?title=GW2_Wiki_English_Mirror:Requests_for_technical_administration/Collation&amp;diff=194552&amp;oldid=prev</id>
		<title>imported&gt;Kvothe: New page: &#039;=== Collation === ; Title : Collation settings $wgCategoryCollation and $smwgEntityCollation ; Type : Change to MediaWiki and Semantic MediaWiki settings in mw:Manual:LocalSettings....&#039;</title>
		<link rel="alternate" type="text/html" href="https://wiki.ezgame.cc/index.php?title=GW2_Wiki_English_Mirror:Requests_for_technical_administration/Collation&amp;diff=194552&amp;oldid=prev"/>
		<updated>2021-10-02T16:07:40Z</updated>

		<summary type="html">&lt;p&gt;New page: &amp;#039;=== Collation === ; Title : Collation settings $wgCategoryCollation and $smwgEntityCollation ; Type : Change to MediaWiki and Semantic MediaWiki settings in mw:Manual:LocalSettings....&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Collation ===&lt;br /&gt;
; Title&lt;br /&gt;
: Collation settings $wgCategoryCollation and $smwgEntityCollation&lt;br /&gt;
; Type&lt;br /&gt;
: Change to MediaWiki and Semantic MediaWiki settings in [[mw:Manual:LocalSettings.php]]&lt;br /&gt;
; Reason&lt;br /&gt;
: Collation - sorting pages numerically&lt;br /&gt;
: Recently the [https://wiki.guildwars2.com/index.php?title=Property:Has_item_value&amp;amp;curid=90873&amp;amp;diff=2341597&amp;amp;oldid=575378 Property:Has item value] was changed to &amp;lt;code&amp;gt;text&amp;lt;/code&amp;gt; (previously &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt;) resulting in e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#ask: [[Has item cost::&amp;gt;574]] [[Has vendor::Historian Vermoth]]}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; only returning #vendor19 which is the 574 Karma item only ignoring other higher costs e.g. [[Historian Vermoth#Items offered|42000 Karma]] - &amp;lt;code&amp;gt;574 (Karma)&amp;lt;/code&amp;gt; being greater than &amp;lt;code&amp;gt;42000 (Karma)&amp;lt;/code&amp;gt; (5 vs 4).&lt;br /&gt;
: This would also fix nav ordering e.g. [[Hunter&amp;#039;s Journal]] with the journals currently being sorted &amp;lt;code&amp;gt;1, 10, 11, ... 19, 2, 3, 4, ... 9&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;1, 2, ... 19&amp;lt;/code&amp;gt;.&lt;br /&gt;
; Links&lt;br /&gt;
: [[mw:Manual:$wgCategoryCollation]], [[smw:Help:$smwgEntityCollation]], [[Guild Wars 2 Wiki talk:Requests for technical administration#Sorting pages with numbers]].&lt;br /&gt;
; Possible pitfalls&lt;br /&gt;
: &amp;amp;mdash;&lt;br /&gt;
; Notes&lt;br /&gt;
: For $wgCategoryCollation the default is &amp;lt;code&amp;gt;uppercase&amp;lt;/code&amp;gt;, while $smwgEntityCollation has the default of &amp;lt;code&amp;gt;identity&amp;lt;/code&amp;gt; and the SMW page assumes that both settings are the same.&lt;br /&gt;
: Numeric sorting only works for unbroken sequences of digits. Digits separated by commas, periods, or spaces are treated as separate numbers.&lt;br /&gt;
&lt;br /&gt;
;Installation steps&lt;br /&gt;
: Swapping $wgCategoryCollation and $smwgEntityCollation to &amp;lt;code&amp;gt;numeric&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;uca-en-u-kn&amp;lt;/code&amp;gt;. Both settings should receive the same value. &amp;lt;code&amp;gt;uca-&amp;lt;langcode&amp;gt;-u-kn&amp;lt;/code&amp;gt; has language-specific adjustments and numeric sorting.&lt;br /&gt;
&lt;br /&gt;
:$wgCategoryCollation (introduced with MW version 1.17.0)&lt;br /&gt;
:* Write &amp;lt;code&amp;gt;$wgCategoryCollation = &amp;#039;uca-en-u-kn&amp;#039;;&amp;lt;/code&amp;gt; in [[mw:Manual:LocalSettings.php]] and then run [[mw:Manual:updateCollation.php]] for your change to take effect.&lt;br /&gt;
:* After changing this option, you must run [[mw:Manual:updateCollation.php]] to recompute sort keys for all pages, or your categories will be sorted inconsistently.&lt;br /&gt;
:* Updating collations is slow and may take several hours on large wikis.&lt;br /&gt;
:* &amp;lt;code&amp;gt;uca-default&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;uca-xx&amp;lt;/code&amp;gt; collations require the [https://php.net/book.intl PHP intl extension]&lt;br /&gt;
:* If you are using Varnish, Squid or file cache, you may have to purge category pages after running updateCollation.php to see the results.&lt;br /&gt;
:* If you update or recompile your version of PHP, you must run updateCollation.php --force.&lt;br /&gt;
&lt;br /&gt;
:$smwgEntityCollation (introduced with SMW version 3.0.0)&lt;br /&gt;
:* Write &amp;lt;code&amp;gt;$smwgEntityCollation = uca-en-u-kn;&amp;lt;/code&amp;gt; in [[mw:Manual:LocalSettings.php]] file after the enableSemantics() call&lt;br /&gt;
:* [https://www.semantic-mediawiki.org/wiki/Help:Maintenance_script_updateEntityCollation.php Maintenance script &amp;quot;update­Entity­Collation.php&amp;quot;] has to be run after changing the stetting of this configuration parameter.&lt;/div&gt;</summary>
		<author><name>imported&gt;Kvothe</name></author>
	</entry>
</feed>