mirror of
https://github.com/discourse/discourse.git
synced 2025-02-12 14:24:54 +00:00
There are two possible ordering for categories shown in sidebar with this commit. When the `fixed_category_positions` site setting is enabled, the categories are ordered based on `Category#position` which is a configurable option by the user. When said site setting is disabled, the categories are ordered based on `Category#name`. The categories in Sidebar are also sorted in such a way where child categories are always ordered right after their parents. When multiple child categories are present, the child categories are ordered based on the ordering described above.