reversePainterSortStable method
Implementation
int reversePainterSortStable(RenderItem a, RenderItem b) {
// print("3 reversePainterSortStable ${a.id} ${b.id} ");
if (a.groupOrder != b.groupOrder) {
return a.groupOrder - b.groupOrder;
} else if (a.renderOrder != b.renderOrder) {
return a.renderOrder - b.renderOrder;
} else if (a.z != b.z) {
final _v = b.z - a.z;
return _v > 0 ? 1 : -1;
} else {
return a.id - b.id;
}
}