Commit 40da8a19 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

make the results more reproducible

parent b79ba47c
......@@ -22,6 +22,7 @@ import lcsb.mapviewer.model.map.species.Species;
import lcsb.mapviewer.model.map.species.field.ModificationResidue;
import lcsb.mapviewer.model.map.species.field.SpeciesWithModificationResidue;
import lcsb.mapviewer.model.map.species.field.StructuralState;
import lcsb.mapviewer.modelutils.map.ElementUtils;
/**
* This util class populate with z-index data if necessary.
......@@ -96,7 +97,7 @@ public class ZIndexPopulator {
}
private int compareStructuralStates(final StructuralState o1, final StructuralState o2) {
return -doubleComparator.compare(o1.getSize(), o2.getSize());
return -stringComparator.compare(o1.getElementId(), o2.getElementId());
}
private int compareReactions(final Reaction o1, final Reaction o2) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment