We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 588d3b7 commit 5a524a7Copy full SHA for 5a524a7
plugin/chatcount/model.go
@@ -209,12 +209,12 @@ func (a ByTotalTimeDescMessageDesc) Len() int {
209
return len(a)
210
}
211
212
-// Less 实现 sort.Interface,按 TotalTime 降序,TotalMessage 降序
+// Less 实现 sort.Interface,按 TodayTime 降序,TodayMessage 降序
213
func (a ByTotalTimeDescMessageDesc) Less(i, j int) bool {
214
- if a[i].TotalTime == a[j].TotalTime {
215
- return a[i].TotalMessage > a[j].TotalMessage
+ if a[i].TodayTime == a[j].TodayTime {
+ return a[i].TodayMessage > a[j].TodayMessage
216
217
- return a[i].TotalTime > a[j].TotalTime
+ return a[i].TodayTime > a[j].TodayTime
218
219
220
// Swap 实现 sort.Interface
0 commit comments