comparefunction

Comparator helper to compare two values of a specific variable type.