Commit a3061229 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

index populator should return most reproducible order

parent 78845020
Pipeline #47217 passed with stage
in 20 minutes and 58 seconds
......@@ -78,7 +78,11 @@ public class ZIndexPopulator {
if (o1 instanceof Element && o2 instanceof Element) {
return compareElements((Element) o1, (Element) o2);
}
return -doubleComparator.compare(o1.getSize(), o2.getSize());
int result = -doubleComparator.compare(o1.getSize(), o2.getSize());
if (result == 0) {
result = -stringComparator.compare(o1.getElementId(), o2.getElementId());
}
return result;
}
private int compareElements(final Element e1, final Element e2) {
......
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