Update sorting.