Skip to content

Commit 5f3f795

Browse files
committed
fix
1 parent df0698e commit 5f3f795

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/dex/keeper/utils/order_book.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func PopulateOrderbook(
3333
}
3434

3535
func sortOrderBookEntries(entries []types.OrderBookEntry) {
36-
sort.Slice(entries, func(i, j int) bool {
36+
sort.SliceStable(entries, func(i, j int) bool {
3737
return entries[i].GetPrice().LT(entries[j].GetPrice())
3838
})
3939
}

0 commit comments

Comments
 (0)