diff --git a/daml-lf/transaction/src/main/scala/com/digitalasset/daml/lf/transaction/TransactionVersion.scala b/daml-lf/transaction/src/main/scala/com/digitalasset/daml/lf/transaction/TransactionVersion.scala index c2291bbaa104..075b4a64a6ba 100644 --- a/daml-lf/transaction/src/main/scala/com/digitalasset/daml/lf/transaction/TransactionVersion.scala +++ b/daml-lf/transaction/src/main/scala/com/digitalasset/daml/lf/transaction/TransactionVersion.scala @@ -23,7 +23,7 @@ object TransactionVersion { val All = List(V10, V11, V12, V13, V14, VDev) - private[daml] implicit val Ordering: scala.Ordering[TransactionVersion] = + implicit val Ordering: scala.Ordering[TransactionVersion] = scala.Ordering.by(_.index) private[this] val stringMapping = All.iterator.map(v => v.protoValue -> v).toMap