mirror of
https://github.com/discourse/discourse.git
synced 2025-04-14 14:30:53 +08:00

Previously it would pluck 6 categories which the user had posted in, **then** order them. To select the **top 6** categories, we need to perform the ordering in the SQL query before the LIMIT