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 [EMAIL PROTECTED] with 'unsubscribe' in the body.