cover sorting in tests