Update grid when the collection is sorted.