File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -120,16 +120,22 @@ class base {
120120 totalEstimate += parseInt ( issue . stats . time_estimate ) ;
121121 totalSpent += parseInt ( issue . stats . total_time_spent ) ;
122122 } ) ;
123+
124+ this . report [ type ] . sort ( ( a , b ) => {
125+ if ( a . iid === b . iid ) return 0 ;
126+
127+ return ( a . iid - b . iid ) < 0 ? 1 : - 1 ;
128+ } ) ;
123129 } ) ;
124130
125- times . sort ( ( a , b ) => {
131+
132+ this . times = times ;
133+ this . times . sort ( ( a , b ) => {
126134 if ( a . date . isSame ( b . date ) ) return 0 ;
127135
128136 return a . date . isBefore ( b . date ) ? 1 : - 1 ;
129137 } ) ;
130138
131- this . times = times ;
132-
133139 this . users = _ . mapObject ( users , user => this . config . toHumanReadable ( user , 'stats' ) ) ;
134140 this . projects = _ . mapObject ( projects , project => this . config . toHumanReadable ( project , 'stats' ) ) ;
135141 this . stats = {
You can’t perform that action at this time.
0 commit comments