Use generic comparator method for method and accept type matching
Pass comparator name as separate parameter