mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
We were using `OFFSET`/`LIMIT` to query topics without an 'ORDER'. Without an explicit order, postgres makes no guarantees about which rows will be returned for each query. This commit adds `ORDER BY id ASC` so that our sitemaps behave consistently.