Extension talk:ReplaceSet/Archive

ReplaceSet and Defaultsort
At first, this extension seemed to me an ideal solution for automating "defaultsorting", correcting or adapting the default key by which MW sorts pages in categories. So I added the following syntax to a template:

In other words, if the value for the magic word "Defaultsort" isn't manually defined, then the default sortkey is determined using ReplaceSet to substitute characters with diacritics for characters without diacritics.

However, this is not what happened. All pages are instead sorted under the symbol "<", which obviously, isn't very helpful. Is this due to a bug, a syntax error or something else entirely? Cavila MW 1.17, MySQL 5.5.16, Php 5.3.8 10:53, 21 May 2012 (UTC)
 * Aha! I did a few tweaks and found out that leaving a bit of space between some of the squirly bracket solved it - an undifferentiated sequence of them is not understood, apparently. Maybe it's a bug or a limitation to using parser functions, but nothing specifically to do with ReplaceSet, I suppose. Cavila MW 1.17, MySQL 5.5.16, Php 5.3.8 11:36, 21 May 2012 (UTC)