<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><div style="text-align: left;"><br>You may try this:<br><br><br> # use {$FullTitle} in page;list templates etc<br>$FmtPV['$FullTitle'] = $FmtPV['$Title']; <br> # {$Title} is now for exclusive use in pagelist, leading A & The stripped<br>$FmtPV['$Title'] = "preg_replace('^(A|The) ','',".$FmtPV['$Title'].")";<br><br><br>What it does is substitute {$Title} with a version that strips leading A & The. Pagelists will use this value and therefore sort correctly. <br>The original {$Title} is still available as {$FullTitle}. Use this in pagelist templates and page text. <br><br>Hope this helps,<br><br>/jm<br><br><br><br><br><br><br><br><br><br><div><span class="gmail_quote">On 4/11/07, <b class="gmail_sendername">david@ellendee.co.uk</b> <david@ellendee.co.uk> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm putting together a couple of sites. One involves titles of books and<br>they both involve peoples names. For the titles I need to ignore a leading<br>'A' or 'The' when sorting and for the names I'd like to sort on surname<br>(last 'word' in title).<br><br>Are these possible?<br><br></blockquote></div><br></div><br /><hr />Take a break and play crossword puzzles - FREE! <a href='http://games.msn.com/en/flexicon/default.htm?icid=flexicon_ wlmemailtaglinemarch07' target='_new'>Play Now!</a></body>
</html>