>Interesting Will. So does your outer-most structure have some sort of >incremental key? Personally an array of structs seems easier to me >because the array implies a series of something. As far as updating >and the code to deal with them it is pretty much 6 or 1/2 dozen I >would think. >
I have a "timeAdded" key which I sort on using structSort(). <cfset keyArray = structSort(cart, "numeric", "desc", "timeAdded")> Then use the resulting array to loop over the cart. <cfloop from="1" to="#arrayLen(keyArray)#" index="thisKey"> <p>SKU: #keyArray[thisKey]# | Time Added: #cart[keyArray[thisKey]].timeAdded# | Price: #cart[keyArray[thisKey]].price#</p> </cfloop> Will ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:319952 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

