Flush cache after randomization of sort orders
This refs #5352