Proper sorting.