Fixed equalityFunc for different equality comparison