If you want to use this within the context of a Views listing, you should have a look at the Views Natural Sort module (<a href="http://drupal.org/project/views_natural_sort">http://drupal.org/project/views_natural_sort</a>). That module might be able to help you out of the box.<div>

This won&#39;t change the node title on the detail page though...</div><div><br></div><div>Sven</div><div>
<br><br><div class="gmail_quote">On Mon, Aug 2, 2010 at 5:23 PM, Benjamin Jacob <span dir="ltr">&lt;<a href="mailto:ben4asterisk@yahoo.com">ben4asterisk@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
Thanks guys for your responses.<br>
Will try the regex thing for sure.<br>
I am not sure if either page title or automatic nodetitles solve my problem off-the-shelf.<br>
<br>
This is pretty common in different listings, e.g. book listing, video/movie listing, etc.<br>
e.g. The Final Frontier = Final Frontier, The<br>
24 Chowringee Lane = Chowringee lane, 24<br>
etc.<br>
<br>
Quite surprising that (as I say) off-the-shelf modules are not available with Drupal. I am not a PHP/Drupal expert (as of yet) but can write this in C/C++ in a jiffy. I hope some of you experts take note :-)<br>
<br>
This can be an added feature in the existing modules you described, where the user can specify different tokens (extracted from the title) he/she wants to be appended to the title.<br>
<br>
Thanks again.<br>
- Ben<br>
<br>
<br>
--- On Mon, 8/2/10, Joe CodeWaggle &lt;<a href="mailto:joe@codewaggle.com">joe@codewaggle.com</a>&gt; wrote:<br>
<br>
&gt; From: Joe CodeWaggle &lt;<a href="mailto:joe@codewaggle.com">joe@codewaggle.com</a>&gt;<br>
&gt; Subject: Re: [support] node titles - move &quot;the&quot;, numbers to the end<br>
&gt; To: <a href="mailto:support@drupal.org">support@drupal.org</a><br>
&gt; Date: Monday, August 2, 2010, 4:45 AM<br>
<div><div></div><div class="h5">&gt; Had another thought:<br>
&gt;<br>
&gt; You can use a PHP regex function to manipulate the title,<br>
&gt; try<br>
&gt; preg_replace().<br>
&gt;<br>
&gt; Assuming that your template is based on phptemplate (the<br>
&gt; Drupal default<br>
&gt; template engine), you can work in the &quot;template.php&quot; file<br>
&gt; in your theme<br>
&gt; folder (you can create one if none exists).<br>
&gt;<br>
&gt; Use the hook for _preprocess_page():<br>
&gt; phptemplate_preprocess_page(&amp;$vars) or ( &quot;your<br>
&gt; template<br>
&gt; name&quot;_preprocess_page(&amp;$vars) ).<br>
&gt;<br>
&gt; Work with $vars[&#39;title&#39;].<br>
&gt;<br>
&gt; Code Example:<br>
&gt; phptemplate_preprocess_page(&amp;$vars) {<br>
&gt;   // Manipulate the Page Title<br>
&gt;   $current_title = $vars[&#39;title&#39;];<br>
&gt;   $searchPattern = &#39;/(.*)(\sthe\s)(.*)/&#39;;<br>
&gt;<br>
&gt;   $new_title = preg_replace($searchPattern, &#39;$1 $3$2&#39;,<br>
&gt; $current_title);<br>
&gt;   $vars[&#39;title&#39;] = $new_title;<br>
&gt; }<br>
&gt;<br>
&gt; The search pattern looks for &quot; the &quot;. It keeps track of the<br>
&gt; parts of the<br>
&gt; title, so you can rearrange the pieces.<br>
&gt;<br>
&gt; If $current_title was &#39;where is the yummy candy&#39;,<br>
&gt; $new_title would be &#39;where is yummy candy the&#39;.<br>
&gt;<br>
&gt; Part one($1) contains &#39;where is&#39;, part two($2) contains &#39;<br>
&gt; the &#39; and part<br>
&gt; three($3) contains &#39;yummy candy&#39;.<br>
&gt;<br>
&gt; Regular Expressions can get pretty involved, so if you<br>
&gt; haven&#39;t used them<br>
&gt; before you&#39;ll need to spend some time learning how to<br>
&gt; create the search<br>
&gt; pattern that you need.<br>
&gt;<br>
&gt; Here are a few links to the PHP manual:<br>
&gt; <a href="http://www.php.net/manual/en/book.pcre.php" target="_blank">http://www.php.net/manual/en/book.pcre.php</a><br>
&gt; <a href="http://www.php.net/manual/en/function.preg-replace.php" target="_blank">http://www.php.net/manual/en/function.preg-replace.php</a><br>
&gt; <a href="http://www.php.net/manual/en/reference.pcre.pattern.syntax.php" target="_blank">http://www.php.net/manual/en/reference.pcre.pattern.syntax.php</a><br>
&gt;<br>
&gt; A quick Google for &quot;regular expression&quot; or regex will turn<br>
&gt; up tons of info.<br>
&gt;<br>
&gt; Joe<br>
&gt;<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a><br>
&gt; [mailto:<a href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a>]<br>
&gt; On<br>
&gt; Behalf Of Benjamin Jacob<br>
&gt; Sent: Sunday, August 01, 2010 2:08 PM<br>
&gt; To: Drupal Support MailList<br>
&gt; Subject: [support] node titles - move &quot;the&quot;, numbers to the<br>
&gt; end<br>
&gt;<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; Any way in drupal to manipulate titles so as to have words<br>
&gt; like &quot;the&quot;/&quot;a&quot;,<br>
&gt; and numbers to the end?<br>
&gt;<br>
&gt;<br>
&gt; Thanks in advance.<br>
&gt; - Ben<br>
&gt;<br>
&gt;<br>
&gt;      <br>
&gt; --<br>
&gt; [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
&gt;<br>
&gt; --<br>
&gt; [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
&gt;<br>
<br>
<br>
<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div></div></blockquote></div><br></div>