<p><b>@ENT8R</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2381#discussion_r381247607">app/controllers/api/notes_controller.rb</a>:</p>
<pre style='color:#555'>> @@ -294,11 +294,25 @@ def search
           raise OSM::APIBadUserInput, "Date #{params[:to]} is in a wrong format"
         end
 
-        @notes = @notes.where(:created_at => from..to)
+        @notes = params[:sort] == "created_at" ? @notes.where(:created_at => from..to) : @notes.where(:updated_at => from..to)
</pre>
<p>You're right. I didn't notice that one...</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/openstreetmap-website/pull/2381?email_source=notifications&email_token=AAK2OLMB2CHC46YMIHNU7ZLRDUNLLA5CNFSM4I5CYR2KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCWCT4UQ#discussion_r381247607">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPK7DPXMVC2CKCXR6DRDUNLLANCNFSM4I5CYR2A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLPC7ACE2DQUHQ7I6BLRDUNLLA5CNFSM4I5CYR2KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCWCT4UQ.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/openstreetmap-website/pull/2381?email_source=notifications\u0026email_token=AAK2OLMB2CHC46YMIHNU7ZLRDUNLLA5CNFSM4I5CYR2KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCWCT4UQ#discussion_r381247607",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2381?email_source=notifications\u0026email_token=AAK2OLMB2CHC46YMIHNU7ZLRDUNLLA5CNFSM4I5CYR2KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCWCT4UQ#discussion_r381247607",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>