Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Feb 3, 2024
1 parent bdbfbf8 commit 6e946e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 6e946e8

Please sign in to comment.