>From documentation on Array class (http://livedocs.macromedia.com/flex/15/flex_docs_en/00001201.htm):
apples.sortOn("Number", Array.DESCENDING); Ciao, r0main --- In flexcoders@yahoogroups.com, Manish Jethani <[EMAIL PROTECTED]> wrote: > On 5/19/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > [...] > > <mx:Array id="apples"> > > <mx:Object> > > <label>Shopper1</label> > > <Number>5</Number> > > </mx:Object> > > <mx:Object> > > <label>Shopper2</label> > > <Number>7</Number> > > </mx:Object> > > <mx:Object> > > <label>Shopper3</label> > > <Number>0</Number> > > </mx:Object> > [...] > > You want to sort by the number of apples. > > apples.sortOn("Number"); > apples.sort().reverse(); // that was ascending > > I'm pretty sure there's a way to directly sort descending, ... Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/