A custom compare function for the VariableModel objects.
First variable to compare.
Second variable to compare.
-1 if name of var1 is less than name of var2, 0 if equal, and 1 if greater.
A custom compare function for the VariableModel objects.