Actually, the DataGrid sort uses the sort from the Collection it uses as a dataProvider, which means the ArrayCollection sort is used if the dataProvider is an ArrayCollection.
It can also be usefull when you need to process an ArrayCollection elements in a given order. Sorting the ArrayCollection before using a for each loop allows you to process the data in the right order.
Thanks Bhasker for solving all my dumb questions .
1 person found this helpful
You can use ArrayCollection not only as a dataProvider for DataGrid. And sometimes it's needed to be sorted manualy: for example tuning for sorting in special form and apply it to any control (list).
Also sometimes not visible data used for sorting.
DataGrid also can sort numbers and strings (don't remember about dates). Sometimes you need special sorting function for your data.
I think there many other arguments. It's useful thing