File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,14 @@ export class TaskGroups {
31
31
32
32
const taskGroupingTree = new TaskGroupingTree ( groups , tasks ) ;
33
33
this . addTasks ( taskGroupingTree ) ;
34
+
35
+ this . sortTaskGroups ( ) ;
36
+
37
+ // Get the headings, now that the groups have been sorted.
38
+ const displayHeadingSelector = new GroupDisplayHeadingSelector ( taskGroupingTree . groups , this . _groupers ) ;
39
+ for ( const group of this . _groups ) {
40
+ group . setGroupHeadings ( displayHeadingSelector . getHeadingsForTaskGroup ( group . groups ) ) ;
41
+ }
34
42
}
35
43
36
44
/**
@@ -91,14 +99,6 @@ export class TaskGroups {
91
99
const taskGroup = new TaskGroup ( groups , tasks ) ;
92
100
this . add ( taskGroup ) ;
93
101
}
94
-
95
- this . sortTaskGroups ( ) ;
96
-
97
- // Get the headings, now that the groups have been sorted.
98
- const displayHeadingSelector = new GroupDisplayHeadingSelector ( taskGroupingTree . groups , this . _groupers ) ;
99
- for ( const group of this . _groups ) {
100
- group . setGroupHeadings ( displayHeadingSelector . getHeadingsForTaskGroup ( group . groups ) ) ;
101
- }
102
102
}
103
103
104
104
private add ( taskGroup : TaskGroup ) {
You can’t perform that action at this time.
0 commit comments