Sorting a group "by name" does not sort sub-group projects "by name"
Summary
When choosing a "sort by" option for a group, the choice does not affect projects in sub-groups as it should.
Steps to reproduce
Start with a group with projects in it, and a also containing a subgroup with projects in that group; for instance:
- Group A
- Group B
- Project 3
- Project 1
- Project 2
- Project 5
- Project 6
- Project 4
- Group B
If you click "sort by name", projects within the parent group (in the example: 4, 5, and 6) will be in name-sorted order, however projects in the subgroup (in the example: 1, 2, and 3) will not be in name-sorted order.
What is the current bug behavior?
In the example, we see the following:
- Group A
- Group B
- Project 3
- Project 1
- Project 2
- Project 4
- Project 5
- Project 6
- Group B
Where only the projects in the immediate group are sorted, but not the sub-group.
What is the expected correct behavior?
I would expect to see all project sorted by whatever sort criteria is chosen, but still within their parent group. In other words, for the example I would expect when choosing "sort by name" to see "1, 2, 3" sorted by name within "Group B" as well as "4, 5, 6" sorted by name in "Group A".
I would also expect either the sub-groups to either be sorted by name along with projects, or sorted based on their status (sub-groups first, projects second), while still have sub-group projects be sorted by the sort method chosen.
For the example above, I would expect to see:
- Group A
- Group B
- Project 1
- Project 2
- Project 3
- Project 4
- Project 5
- Project 6
- Group B
/label ~bug