<p></p>
<blockquote>
<p>The input files must all be sorted. Otherwise we can't do this merging of the input files on the fly. This isn't a huge problem though. Most OSM data and OSM change files normal users will encounter are sorted.</p>
</blockquote>
<p>The Wiki page on the OSM XML format (<a href="https://wiki.openstreetmap.org/wiki/OSM_XML" rel="nofollow">https://wiki.openstreetmap.org/wiki/OSM_XML</a>) explicitly states that blocks of a type don't have to be sorted (section "Certainties and Uncertainties"). You could argue that the Wiki isn't a reliable source of reference anyway, and simply ignore this page. However, there's some chance that Introducing stricter requirements will break some people's workflow.</p>
<p>Just to name one example, Overpass queries using <code>out qt</code>; would produce an XML result that can no longer be processed by osm2pgsql. There may be other extract services that might be afftected in a smilar way (probbaly needs a bit of a research to identify those).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/issues/1167#issuecomment-628673107">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353UQSQHIWAXSZ7U4PS3RRP53DANCNFSM4M6EYBTQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353QMLNPY2IV6Y3UMJFDRRP53DA5CNFSM4M6EYBT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEV4MUUY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/issues/1167#issuecomment-628673107",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/1167#issuecomment-628673107",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>