[flexcoders] Re: Help on sorting an ArrayCollection then adding an item to the top

2008-11-11 Thread Mark
Perfect, that did the trick... thanks -M --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Yes, that wording does make a difference. You can look into using a sortCompare function. Or, you can hack it by adding the item to the collection, but in addition add an

Re: [flexcoders] Re: Help on sorting an ArrayCollection then adding an item to the top

2008-11-11 Thread Josh McDonald
I'm fairly certain Alex has blogged a custom Collection that does exactly what you want (lets you view other collections together as one, so you simply sort the individual collections)... -Josh On Tue, Nov 11, 2008 at 11:36 PM, Mark [EMAIL PROTECTED] wrote: Perfect, that did the trick...

[flexcoders] Re: Help on sorting an ArrayCollection then adding an item to the top

2008-11-10 Thread Mark
Thanks, but as soon as you make a choice from the comboBox you can't select it again as a default. And maybe Select One is the wrong wording for what I'm doing here... Select All would be a better choice of words. --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote:

[flexcoders] Re: Help on sorting an ArrayCollection then adding an item to the top

2008-11-10 Thread Tim Hoff
Yes, that wording does make a difference. You can look into using a sortCompare function. Or, you can hack it by adding the item to the collection, but in addition add an additional property to all of the items in the collection, like sortIndex; that will be used to sort the reset item at the

[flexcoders] Re: Help on sorting an ArrayCollection then adding an item to the top

2008-11-09 Thread Mark
Thanks for the quick reply Ralf, but I have no idea how to do either of what you suggested. Would you know of any examples you can point me to? Thanks, Mark --- In flexcoders@yahoogroups.com, Ralf Bokelberg [EMAIL PROTECTED] wrote: You can provide your own sort function, which sorts your

[flexcoders] Re: Help on sorting an ArrayCollection then adding an item to the top

2008-11-09 Thread Tim Hoff
mx:ComboBox prompt=Select One/ -TH --- In flexcoders@yahoogroups.com, Mark [EMAIL PROTECTED] wrote: Thanks for the quick reply Ralf, but I have no idea how to do either of what you suggested. Would you know of any examples you can point me to? Thanks, Mark --- In