compare on equal basis
all keys are ints