Monday, January 11, 2010

Sorting an ArrayCollection using the SortField and Sort classes

Sorting an ArrayCollection using the SortField and Sort classes: "
Sometimes in life you just need data to be sorted. Whether its a case insensitive sort (for names) or a numeric sort (for, uh, numbers), you just want things sorted in a particular order.

This example demonstrates how you can take a bunch of random numbers in an ArrayCollection and sort them numerically in ascending order.

Full code after the jump.

(more…)

flex Sorting an ArrayCollection

No comments:

Post a Comment

Your comments is appreciate.