[openstreetmap/openstreetmap-website] Sort users by their ids (be96aa7)

Tom Hughes notifications at github.com
Sat Aug 26 15:05:42 UTC 2023


The isn't sorting them, the issue is having to sort them into the order of the requested IDs - the SQL that is used (both before and now without the order) does not guarantee any particular order.

I think possibly the `find` method did sort the returned rows into the order of the ids that were requested but it doesn't seem to be specified in the rails documentation so I didn't realise it was happening.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/commit/be96aa7cb42a2d43f84717a023f57f52b38cf6b7#commitcomment-125594513
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/commit/be96aa7cb42a2d43f84717a023f57f52b38cf6b7/125594513 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230826/6057d919/attachment.htm>


More information about the rails-dev mailing list