pub fn check_sort_compatibility(predicate: &str, subject_sort: Sort) -> bool
Check if a predicate is compatible with a subject’s sort. Returns true if compatible or no sort requirement exists.