diff --git a/upickle/core/src-2.12/upickle/core/compat/SortInPlace.scala b/upickle/core/src-2.12/upickle/core/compat/SortInPlace.scala index 726e9a8ec..51fc750ac 100644 --- a/upickle/core/src-2.12/upickle/core/compat/SortInPlace.scala +++ b/upickle/core/src-2.12/upickle/core/compat/SortInPlace.scala @@ -1,7 +1,7 @@ package upickle.core.compat object SortInPlace { - def apply[T, B](t: collection.mutable.ArrayBuffer[T])(f: T => B): Unit = { + def apply[T, B: Ordering](t: collection.mutable.ArrayBuffer[T])(f: T => B): Unit = { val sorted = t.sortBy(f) t.clear() t.appendAll(sorted)