Skip to content

Commit 0362543

Browse files
committed
Bugfix for sorting parts for each day.
1 parent 9bbab73 commit 0362543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/processor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func GetProcessors(args Args) ([]PluginProcessor, error) {
148148
sort.Slice(processors, func(i, j int) bool {
149149
l, _ := strconv.Atoi(processors[i].Args.Day)
150150
r, _ := strconv.Atoi(processors[j].Args.Day)
151-
return l < r
151+
return l < r || (l == r && processors[i].Args.Part == "1")
152152
})
153153

154154
return processors, nil

0 commit comments

Comments
 (0)