Dave, Thanks, we can always count on you. I actually came up with another way as well. What you did inspired me.
The numbers range from 6 down to 1. I made a copy of the string and replaced the 6 with A, 5 with B, etc. Then I can sort it ascending and not worry about it. After its sorted the number and dash get dropped. Really I would never have thought of it until you gave me the idea of splitting them apart. Like I said... I'm really tired! Steve -----Original Message----- From: Dave Watts [mailto:[email protected]] Sent: Thursday, October 29, 2009 4:50 PM To: cf-talk Subject: Re: List sort problem... My brain isn't working today. Here's my five-minute, untested, unimplemented solution: 1. Create a new structure. 2. Loop over your original list. 3. Within the loop, examine the first character of each item. 4. Use that to place the item within an array of items within the structure. Presumably, for example, if you have nine digits, you'd end up with nine keys within that structure, each of which would point to an array of all items whose first character matched that key's name. 5. Now, loop over the structure. You can start your loop from the top and work down. 6. For each key, sort the array items based on the characters after the dash. 7. Loop over the array, and display the items. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more informatio ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327817 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

