Sort outcomes in decodeoffer response (#4094)

* Sort outcomes in `decodeoffer` response

* scalafmt

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
This commit is contained in:
rorp 2022-02-14 17:14:29 -08:00 committed by GitHub
parent e8ee5d7339
commit 4e6c68155e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -625,7 +625,9 @@ object Picklers {
Vector(writeJs(hyperbolaPiece))
}
Obj(PicklerKeys.pointsKey -> (endPointsJs ++ midPointJs))
val points =
(endPointsJs ++ midPointJs).sortBy(_.obj(PicklerKeys.outcomeKey).num)
Obj(PicklerKeys.pointsKey -> points)
}
}