I would agree with Brian and Claude on adding the column for sorting.  It 
would be easy enough to adjust your INSERT / UPDATE calls to auto-create 
the sort version, like this:

<cfset sortTitle = replace(reReplaceNoCase(form.title, "(A|An|The) (.*)", 
"\2, \1"), """", "", "all") />

UPDATE ...
SET title = <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.title#" 
/>, 
     sortTitle = <cfqueryparam cfsqltype="CF_SQL_VARCHAR" 
value="#sortTitle#" />
WHERE ID = ...

 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320544
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to