toUpdate.add(osm);
} else if (osm.isDeleted() && !osm.isNew() && osm.isModified() && osm.isVisible()) {
toDelete.add(osm);
}
}
OsmPrimitiveComparator c = new OsmPrimitiveComparator(false, true);
Collections.sort(toDelete, c);
Collections.sort(toAdd, c);
Collections.sort(toUpdate, c);
}