added array_sort helper that is short-cut into collection sortBy.
Merge branch '4.0'