Skip to content

Commit

Permalink
Bugfix for sorting parts for each day.
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Wulff committed Dec 11, 2024
1 parent 9bbab73 commit 0362543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func GetProcessors(args Args) ([]PluginProcessor, error) {
sort.Slice(processors, func(i, j int) bool {
l, _ := strconv.Atoi(processors[i].Args.Day)
r, _ := strconv.Atoi(processors[j].Args.Day)
return l < r
return l < r || (l == r && processors[i].Args.Part == "1")
})

return processors, nil
Expand Down

0 comments on commit 0362543

Please sign in to comment.