We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df0698e commit 5f3f795Copy full SHA for 5f3f795
x/dex/keeper/utils/order_book.go
@@ -33,7 +33,7 @@ func PopulateOrderbook(
33
}
34
35
func sortOrderBookEntries(entries []types.OrderBookEntry) {
36
- sort.Slice(entries, func(i, j int) bool {
+ sort.SliceStable(entries, func(i, j int) bool {
37
return entries[i].GetPrice().LT(entries[j].GetPrice())
38
})
39
0 commit comments