2 Replies Latest reply on Dec 28, 2009 6:15 PM by cdub

    Split an ArrayCollection into two lists

    cdub Level 1

      I have an ArrayCollection that I need to split into two lists based on which 'section' they're in. In other words, I want all the items where 'section' is 1 to be in a list and all the items where 'section' is 2 to be in another list.

       

      Should I make two ArrayCollections? Filter the data from a single ArrayCollection into the different lists? What's the best way to do this without having to store duplicate data in memory (ie not repeat both 'sections' twice)?