Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is the need for sorting an ArrayCollection ??

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic