The data I want to sort on is the label, which is actually a row in the
query that is returned... coldfusion manufacturers the label content in the
query.

So it's just a string.

Rick



On 10/2/07, Alex Harui <[EMAIL PROTECTED]> wrote:
>
>    what does the data look like?
>
>  ------------------------------
> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Rick Root
> *Sent:* Tuesday, October 02, 2007 8:59 AM
> *To:* [email protected]
> *Subject:* [flexcoders] Sorting content in a List component
>
>
>
> I have two lists, with the ability to drag items from one to the
> other. works fine..
>
> However, my users have asked that the data in the "destination" list
> be sorted alphabetically rather than just dropped in place.
>
> I can't get this to work though. By default, the list items are
> dragged in and placed in the array collection where they are dropped.
>
> So I've added the following code to my dragComplete vent handler:
>
> var target:List = List(cboSelectedFundcodes);
> var sort:Sort = new Sort();
> sort.fields = [new SortField("LABEL", true)];
>
> ArrayCollection(target.dataProvider).sort = sort;
> ArrayCollection(target.dataProvider).refresh();
>
> However, this doesn't seem to have any affect.
>
> Any suggestions?
>
> --
> Rick Root
> Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at
> www.opensourcecf.com
>
> 
>



-- 
Rick Root
Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at
www.opensourcecf.com

Reply via email to