<p>The other issue is that diffs are processed in streaming fashion to avoid keeping the (potentially large) diff in memory. Sorting the changes, especially by membership, would introduce an even larger memory overhead. The correct way to do this, if you would like to submit a patch, is to defer foreign key / member-of / used-node checking until just before commit - this adds complexity, but would mean the ordering in the file would be relaxed.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/issues/688#issuecomment-33520762'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/1419053__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwNjQ3MzQ0MSwiZGF0YSI6eyJpZCI6MjQ0NDIyMzB9fQ==--488cb79c18e0be82a59f21e06c752d5892e5d688.gif' height='1' width='1'></p>