Make refresh maintain sort state