Shuffle records before sorting in tests.