Reverse subcategory sorting for income category groups

Din from Lunch Money
When sorting amounts from lowest to highest, expense category groups are ordered as expected, with the lowest amounts first. However, in the Query Tool, income and expense categories may appear together in the same report, making the current sorting behavior less intuitive for income categories.
For example, when expanding an income category group, its subcategories are currently sorted from the lowest income to the highest. Since these are income categories, it would be more intuitive to display the subcategory with the highest income first, followed by the rest in descending order.
Subcategories within expense category groups should continue to be sorted with the highest expense first, while subcategories within income category groups should be sorted with the highest income first.
The top-level sorting should remain unchanged. Only the second-level sorting (subcategories) and third-level sorting (tags) should be adjusted based on whether the parent category has Treat as income enabled.
Could add a display option to allow for both existing behavior and new behavior:
Sort income subcategories by:
Report sort order
/ Income (highest to lowest)
Log In