sort was reversed?
This commit is contained in:
parent
345343647a
commit
7a90613c91
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue