I would take a sample set of data returned from CF and bake it into the app and see if it sorts. If not, then you can post that as a test case. Also, shouldn't you be doing this in dragDrop and not dragComplete?
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Rick Root Sent: Tuesday, October 02, 2007 10:53 AM To: [email protected] Subject: Re: [flexcoders] Sorting content in a List component 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] <mailto:[EMAIL PROTECTED]> > wrote: what does the data look like? ________________________________ From: [email protected] <http://ups.com/> [mailto: flexcoders@ <mailto:flexcoders@> yahoogroups.com <http://yahoogroups.com> ] On Behalf Of Rick Root Sent: Tuesday, October 02, 2007 8:59 AM To: [EMAIL PROTECTED] ups.com <http://ups.com/> 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 <http://www.opensourcecf.com> -- Rick Root Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at www.opensourcecf.com <http://www.opensourcecf.com>

