mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Fix #199
This commit is contained in:
@@ -23,7 +23,12 @@ func (rs *ReleaseSorter) Len() int {
|
||||
}
|
||||
|
||||
func (rs *ReleaseSorter) Less(i, j int) bool {
|
||||
return rs.rels[i].NumCommits > rs.rels[j].NumCommits
|
||||
diffNum := rs.rels[i].NumCommits - rs.rels[j].NumCommits
|
||||
if diffNum != 0 {
|
||||
return diffNum > 0
|
||||
}
|
||||
|
||||
return rs.rels[i].Created.Second() > rs.rels[j].Created.Second()
|
||||
}
|
||||
|
||||
func (rs *ReleaseSorter) Swap(i, j int) {
|
||||
|
Reference in New Issue
Block a user