mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-09 18:13:10 +02:00
Fix #199
This commit is contained in:
1 parent
9961f9a53c
commit
fb0972afad
5 files changed
+12
-7
No files matched your search
@@ -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