I had trouble getting that to work too. It seemed to discard the structs. So
I was left with a sorted array, but no structs in it with named attributes.
While I am sorting by NAME, I also need the other attribute TYPENAME.
I messed with that for a bit but really am having trouble with it. Maybe it's
just the day.
>You'll have to do the sort manually. Easiest bet would be to use a
>secondary structure to sort them, and then create a new array in
>sorted order. Here's psuedocode:
>
>unsortedArray = ...
>sorter = structNew();
>for (i = 1; i <= unsortedArray.length; i++) {
> sorter[unsortedArray[i].name] = unsortedArrray[i];
>}
>sortedArray = arrayNew(1);
>for (i in listSort(structKeyList(sorter), "textnocase")) { // list loop
> arrayAppend(sortedArray, sorter[i]);
>}
>
>cheers,
>barneyb
>
>On 12/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263335
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4