sort was reversed?

This commit is contained in:
Jeff Carr 2024-12-02 08:45:42 -06:00
parent 345343647a
commit 7a90613c91
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ func (a GitTagAge) Len() int { return len(a) }
// sorts in ? order
func (a GitTagAge) Less(i, j int) bool {
if time.Since(a[i].Authordate.AsTime()) > time.Since(a[j].Authordate.AsTime()) {
if time.Since(a[i].Authordate.AsTime()) < time.Since(a[j].Authordate.AsTime()) {
return true
}
return false