<p></p>
<p dir="auto">Someone might want to sort changesets by close time if they want to show closing events independently. In <a href="https://github.com/AntonKhorev/osm-changeset-viewer">my changeset viewer</a> there's an option to show them with output looking like this:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/4158490/260879058-cfd14bb4-d3bc-4d2c-a959-9c161025cf86.png"><img src="https://user-images.githubusercontent.com/4158490/260879058-cfd14bb4-d3bc-4d2c-a959-9c161025cf86.png" alt="cset-viewer-closed-csets" style="max-width: 100%;"></a></p>
<p dir="auto">Most of changesets on this image were made by StreetComplete. They can overlap in all kinds of ways. Sorting by open time and by close time may give significantly different results. Therefore any sudden change to sorting in the API may break already written code. For example, <a href="https://github.com/woodpeck/osm-revert-scripts/blob/54e99458bd029030b7e0d42141d392bc8f2ae4e2/UserChangesets.pm#L80">this paging code</a> relies on changesets being sorted by <code class="notranslate">created_at</code>.</p>
<p dir="auto">Here's a small example of changesets that change order depending on if they are sorted by open or close time: <a href="https://api.openstreetmap.org/api/0.6/changesets?user=550156&time=20220923T185808Z,20220923T195831Z" rel="nofollow">https://api.openstreetmap.org/api/0.6/changesets?user=550156&time=20220923T185808Z,20220923T195831Z</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4164#issuecomment-1679860252">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNSSDFWIXPORSOSSU3XVQTNNANCNFSM6AAAAAA3OYR2H4">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMXPMIKJTR4JVXTS33XVQTNNA5CNFSM6AAAAAA3OYR2H6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTEECRBY.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/4164/c1679860252</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/4164#issuecomment-1679860252",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4164#issuecomment-1679860252",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>