diff --git a/times.go b/times.go index e8e7116..7df0ddf 100644 --- a/times.go +++ b/times.go @@ -64,8 +64,8 @@ func getTimeLogs(since time.Time, on_process_repo func(repo gitea.Repository, to } } // Sort the times by Created At - sort.Slice(times, func(i, j int) bool { - return times[i].Created.Compare(times[j].Created) > 1 + sort.SliceStable(times, func(i, j int) bool { + return times[j].Created.Compare(times[i].Created) < 1 }) return times }