Here is what I am using now and it works.  It is a listSort on the
structKeyList.


               <cfset lastletter = '@' <mailto:'@'> >
               <cfloop list="#listSort(structKeyList(application.translate),
'textnocase')#" index="field">
                  <cfif mid(field,1,1) NEQ lastletter AND mid(field,1,1) NEQ
'1'>
                     <cfset lastletter = mid(field,1,1)>
                     <cfset anchorhref = '##'&lastletter>
                     <cfoutput>
                        <input type="Radio" name="letter"
value="#lastletter#" size="+1"
color="##000080">#lastletter#</font>
                     </cfoutput>
                  </cfif>
               </cfloop>         


Attempting to use structKeySort gets this error message.

Variable STRUCTKEYSORT is undefined.

Shawn McKee
Manager, Web Development
NewsStand, Inc.
8620 Burnet Rd., Suite 400
Austin, TX 78757 USA
512-334-5100
NewsStand Inc. is the leader in digital delivery of newspapers, magazines
and other print publications. Our user-friendly technology and innovative
media distribution is changing the way people read. Now, we have over 50
titles (in several languages) for purchase as either single copies or
subscriptions that can be easily downloaded on your desktop, laptop or
Tablet PC. Here is a link to a free copy of The New York Times for you to
try. Select "Try a free sample" and click on "Add to cart."  

http://newsstand.com/?fuseaction=signup
<http://newsstand.com/?fuseaction=signup&promo_id=2295> &promo_id=2295

-----Original Message-----
From: Ubqtous [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 9:08 AM
To: CF-Talk
Subject: Re: CFMX and a collection loop problem

Raymond,

On 11/26/2003 at 09:39, you wrote:

RC> The docs actually say this?

Yeah, I quoted directly from the LiveDocs site. It's mentioned here as
well:
http://livedocs.macromedia.com/coldfusion/6/Migrating_ColdFusion_5_Applicati
ons/cf_migration_guide7.htm
<http://livedocs.macromedia.com/coldfusion/6/Migrating_ColdFusion_5_Applicat
ions/cf_migration_guide7.htm>

RC> structSort sorts by the values, not by the keys. As for
RC> structKeySort - there is no function called structKeySort.

Looks like the unsorted behavior was noticed some time ago:
http://cfguru.daemon.com.au/archives/000050.html
<http://cfguru.daemon.com.au/archives/000050.html>

~ Ubqtous ~

  _____  


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to