From d63adde44bd0505715b450e9e5dbe120e377208d Mon Sep 17 00:00:00 2001 From: Noah Date: Thu, 21 Mar 2024 18:38:06 -0500 Subject: [PATCH] fix(times): Fix time logs being sorted incorrectly --- times.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }