Archive for May, 2011

ArrayCollection contains() uses your sort!

Tags: , , ,

Here’s another gotcha that took me a while to realize what was wrong. I was using an ArrayCollection to hold a collection of items. I had a custom sort applied since the items were typed objects that needed to be sorted according to certain, out-of-the-ordinary fields. In the sort method, I was comparing values and [...]

Continue reading » 1 Comment