Skip to content

Commit

Permalink
Merge pull request #141 from csunibo/fix-lezioni
Browse files Browse the repository at this point in the history
fix sorting for /lezioni*
  • Loading branch information
samuelemusiani authored Nov 26, 2023
2 parents bd33388 + 07672be commit 6dcb98d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/uni.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func GetTimeTable(courseType, courseName string, year int, day time.Time) (strin

// Sort the events by start time
slices.SortFunc(events, func(a, b timetable.Event) int {
return int(b.Start.Time.Sub(a.Start.Time).Nanoseconds())
return int(a.Start.Time.Sub(b.Start.Time).Nanoseconds())
})

b := strings.Builder{}
Expand Down

0 comments on commit 6dcb98d

Please sign in to comment.