Skip to content

Commit f16973f

Browse files
authored
progress: Stability fix for descending sorts (#272)
1 parent 62e63ed commit f16973f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

progress/tracker_sort.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ func (sb sortByValue) Less(i, j int) bool {
7878

7979
type sortDsc struct{ sort.Interface }
8080

81-
func (sd sortDsc) Less(i, j int) bool { return !sd.Interface.Less(i, j) }
81+
func (sd sortDsc) Less(i, j int) bool { return !sd.Interface.Less(i, j) && sd.Interface.Less(j, i) }

0 commit comments

Comments
 (0)