Compare two tree entries
first tree entry
second tree entry
< 0 if e1 is before e2, 0 if e1 == e2, >0 if e1 is after e2