Skip to content

Commit

Permalink
fix: Use SliceStable to sort potential changes (#265)
Browse files Browse the repository at this point in the history
* fix: Use SliceStable to sort potential changes

Fixes golang/go#55009

Co-authored-by: Tim <[email protected]>
  • Loading branch information
Jorropo and TimothyStiles authored Sep 12, 2022
1 parent eba6b72 commit 59ce2fe
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ name: notify social media

on:
release:
issues:
pull_request:
types: [opened]
issues:
issue_comment:
discussion:
discussion_comment:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/tweet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
release:
issues:
types: [opened]
pull_request:
types: [opened]
push:
branches:
- notify # for testing purposes
Expand Down
2 changes: 1 addition & 1 deletion synthesis/fix/synthesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func Cds(sequence string, codontable codon.Table, problematicSequenceFuncs []fun
}

// Sort potential changes by weight
sort.Slice(potentialChanges, func(i, j int) bool {
sort.SliceStable(potentialChanges, func(i, j int) bool {
return weightMap[potentialChanges[i].To] > weightMap[potentialChanges[j].To]
})

Expand Down

0 comments on commit 59ce2fe

Please sign in to comment.