Improve sorting.