aspose file tools*
The moose likes Flex and the fly likes what is the need for sorting an ArrayCollection ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "what is the need for sorting an ArrayCollection ?? " Watch "what is the need for sorting an ArrayCollection ?? " New topic
Author

what is the need for sorting an ArrayCollection ??

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,

But can anybody please let me know why there is a sorting Facility provided for ArrayCollection ??

Where this could be useful ?? because as far as my knowledge ArrayCollection would be used as a dataprovider for a DataGrid and datagrid has already got Facility for sorting depending upon the column header clcik .

So why or where sort Mecahnism is used in ArrayCollection ??


Please excuse if the question is a dumb one .

Please share your ideas .


Save India From Corruption - Anna Hazare.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

An ArrayCollection is just a data structure, its unrelated to the view component you choose to display its contents with. Nothing to do with Flex, this is just one of the basics of good programming practice.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is the need for sorting an ArrayCollection ??