Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
Spectra-Talk
Cold Fusion Spectra - Technical
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Spectra :
product's home
product's list home
 
  Archived TallyList / Spectra-Talk: 
Subject: Sorting the output of a get multiple
Darren Tracey (9p/+0r)     Posted: Sunday 29 Apr 2001
This post: 45 views, +0 rating

I have a section that lists all the objects of a particular type, but I want them sorted by one of the properties.

At the moment I'm running a cfa_contentObjectGetMultiple, specifying the TypeID, then looping over the structure and handing the ObjectIDs to the relevant display handler. The problem is that this seems to be sorted by the ObjectIDs UUID, which doesn't always give you a logical order.

Is there some way to sort the output into, for example, alphanumeric order by label?

I could probably load the ObjectID and the property to sort by into a 2d array and the sort that and then loop over that array and then hand the ObjectIDs to the handler, but it seems to be something that might or should be built into the Spectra commands somewhere. Or maybe it would make a good publishing rule for a container.

Am I missing something, or do I need to build, sort and loop over an array?

Regards

Darren Tracey Web Developer Thiess Australia

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm ------------------------------------------------------------------------------ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a message to spectra-talk-request@houseoffusion.com with 'unsubscribe' in the body.


Similar Subject Line Posts (+/- two weeks of this post)
RE: Sorting the output of a get multiple  29 Apr 2001   (29 v/ +0 r)
Re: Sorting the output of a get multiple  29 Apr 2001   (24 v/ +0 r)
Re: Sorting the output of a get multiple  29 Apr 2001   (29 v/ +0 r)
Sorting the output of a get multiple  29 Apr 2001 (this post)   (45 v/ +0 r)
 

Send a reply to the Spectra-Talk list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000