MCPcopy Create free account
hub / github.com/FloatTech/ZeroBot-Plugin-Playground / Sort

Method Sort

plugin/rsshub/domain/model.go:98–102  ·  view source on GitHub ↗

Sort ... order by Date desc

()

Source from the content-addressed store, hash-verified

96
97// Sort ... order by Date desc
98func (r *RssClientView) Sort() {
99 sort.Slice(r.Contents, func(i, j int) bool {
100 return r.Contents[i].Date.Unix() > r.Contents[j].Date.Unix()
101 })
102}
103
104// RssSubscribe 订阅关系表:群组-RSS频道
105type RssSubscribe struct {

Callers 2

rankByVoteFunction · 0.80
syncRssMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected