Change the compare method

The previous implementation could generate the following exception:
Comparison method violates its general contract!
eu.excitementproject.eop.core.EditDistanceEDA.sortAnnotationList(EditDistanceEDA.java:763)