<p dir="auto">Ordering by id <a href="https://api.rubyonrails.org/classes/ActiveRecord/FinderMethods.html#method-i-last" rel="nofollow">happens by default</a>.</p>
<p dir="auto">Some more <code class="notranslate">order(:id)</code> are removed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2452031924" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5054" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5054/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5054">#5054</a>.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5055'>https://github.com/openstreetmap/openstreetmap-website/pull/5055</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5055/commits/6f5167b86609674b2f38a355ea0c34abdca10ba8" class="commit-link">6f5167b</a> Don't order by id when getting last records</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5055/files">2 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5055/files#diff-10a5c4533814c8b1222f0ef0833c82edd68584d85757fc431557b39813777c19">test/controllers/diary_entries_controller_test.rb</a>
(6)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5055/files#diff-9ca0f3412d30fa75d21d710e7d0f07b08a8eeb934543b9db405b8d63619548c1">test/controllers/user_blocks_controller_test.rb</a>
(7)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5055.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5055.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5055.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5055.diff</a></li>
</ul>
<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/5055">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOWNWP6GLBFK4BXCDTZQF65RAVCNFSM6AAAAABMDOBJAKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2TEMBVGQZDGMI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLPWYI4HED2C2522KETZQF65RA5CNFSM6AAAAABMDOBJAKWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJEJ3A24.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/5055</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/5055",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5055",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>