Sorting and refresh working together.