<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>My pagelists aren't sorting correctly.  Things should be nicely sorted and grouped.  Instead the groups repeat.  :(</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Here's the Category/GroupFooter page:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>(:if name Category.Author-* :)</DIV><DIV>(:pagelist link=Category.{$Name} group=Simile fmt=#authorcatlist list=normal order=$:Work :)</DIV><DIV>(:ifend:)</DIV><DIV>(:if name Category.Year-* :)</DIV><DIV>(:pagelist link=Category.{$Name} group=Simile fmt=#yearcatlist list=normal order=$:Work,$:WAuthor :)</DIV><DIV>(:ifend:)</DIV><DIV>(:if name Category.Title-* :)</DIV><DIV>(:pagelist link=Category.{$Name} group=Simile fmt=#titlecatlist list=normal order=$:WAuthor :)</DIV><DIV>(:ifend:)</DIV><DIV>(:if name Category.Period-* :)</DIV><DIV>(:pagelist link=Category.{$Name} group=Simile fmt=#periodcatlist list=normal order=$:Year,$:Work,$:WAuthor :)</DIV><DIV>(:ifend:)</DIV><DIV>(:if name Category.Publisher-* Category.Type-* :)</DIV><DIV>(:pagelist link=Category.{$Name} group=Simile fmt=#othercatlist list=normal order=$:Work,$:WAuthor :)</DIV><DIV>(:ifend:)</DIV><DIV>(:if !name Category.Publisher-* Category.Period-*  Category.Title-*  Category.Year-*  Category.Author-*  Category.Type-* :)</DIV><DIV>(:pagelist link=Category.{$Name} group=Simile fmt=#title order=title list=normal:)</DIV><DIV>(:ifend:)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>So different types of Category pages get different sorts.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Sorts are NOT working on:</DIV><DIV>Type-  see <A href="http://www.similepedia.com">http://www.similepedia.com</A>/index.php/Category/Type-Fiction</DIV><DIV>Period- see <A href="http://www.similepedia.com/index.php/Category/Period-20thCentury">http://www.similepedia.com/index.php/Category/Period-20thCentury</A></DIV><DIV>Author- see <A href="http://similepedia.com/index.php/Category/Author-SteinbeckJohn">http://similepedia.com/index.php/Category/Author-SteinbeckJohn</A></DIV><DIV>probably not working on year, but I don't have an example</DIV><DIV>Publisher- see <A href="http://similepedia.com/index.php/Category/Publisher-Penguin">http://similepedia.com/index.php/Category/Publisher-Penguin</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Sort doesn't really matter on the Title pages -- two books with the same title won't come up very often.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>SO -- I'm either doing something wrong, or sorts don't work on pagelists when dealing with {{$BaseName}$:Variable}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Clues or hints?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>On the brighter side I made a custom category markup to deal with periods in the variable values.  *sigh*</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>// The following markup fixes a problem when retrieving data with periods</DIV><DIV>// to create category page markup.</DIV><DIV> Markup('[[?','&lt;[[!','/\\[\\[\\?([^\|]*)\|?(.*?)\\]\\]/e', "Keep(MakeLink(\$pagename,PSS(helpXES('$CategoryGroup/$1')),PSS('$2'),'',\$GLOBALS['LinkCategoryFmt']),'L')");</DIV><DIV>function helpXES($param) {</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>$param = preg_replace('/[^A-Za-z0-9 -]/', '', $param);</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>return  $param;</DIV><DIV>}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>There's probably a better way.  I have yet to implement it on the live site.</DIV><BR><DIV> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Monaco" size="1" style="font: 9.0px Monaco">Crisses</FONT></P></DIV></BODY></HTML>