Added custom sort to array_sort