LPS-47551 Validate that a sort can be null