Hi, > osmosis --read-xml file="data.osm" --sort type="TypeThenId" --write-xml file="data-sorted.osm" Very cool! > Apologies for the noise, but may be useful. From memory, JOSM is one of > the those generators that will write entities out of order ... No, it doesn't. Bye Frederik