Skip to content

Commit

Permalink
progress: Stability fix for descending sorts (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanBaulch committed Aug 13, 2023
1 parent 62e63ed commit f16973f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion progress/tracker_sort.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ func (sb sortByValue) Less(i, j int) bool {

type sortDsc struct{ sort.Interface }

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

0 comments on commit f16973f

Please sign in to comment.