Thanks Peter, thats great<br><br><div class="gmail_quote">2009/10/13 Peter Bowers <span dir="ltr">&lt;<a href="mailto:pbowers@pobox.com">pbowers@pobox.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, Oct 12, 2009 at 11:53 AM, Simon &lt;<a href="mailto:nzskiwi@gmail.com">nzskiwi@gmail.com</a>&gt; wrote:<br>
&gt; I&#39;ve been wanting to do something similar,<br>
&gt; with the added proviso that if the first wiki work is one of A, An, The then<br>
&gt; that should be ignored in the sort.<br>
<br>
</div>Here&#39;s a rough idea, depending on the {$Title} for your sorting, but<br>
getting rid of A, An, &amp; The:<br>
<br>
$article_pat = &#39;/^(?:The|An?) /i&#39;;<br>
SDV($PageListSortCmp[&#39;title_no_article&#39;],<br>
    &#39;@strcasecmp(preg_replace(\&#39;&#39;.$article_pat.&#39;\&#39;, \&#39;\&#39;,<br>
$PCache[$x][\&#39;=title\&#39;]), preg_replace(\&#39;&#39;.$article_pat.&#39;\&#39;, \&#39;\&#39;,<br>
$PCache[$y][\&#39;=title\&#39;]))&#39;);<br>
<br>
The quoting is pretty messy and could be cleaned up, but it seems to<br>
work in my (albeit brief) testing.<br>
<font color="#888888"><br>
-Peter<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>____<br><a href="http://kiwiwiki.co.nz">http://kiwiwiki.co.nz</a><br>