diff options
Diffstat (limited to 'test/files/run/sort.scala')
-rw-r--r-- | test/files/run/sort.scala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/files/run/sort.scala b/test/files/run/sort.scala index b89ff22f54..eea3a2d645 100644 --- a/test/files/run/sort.scala +++ b/test/files/run/sort.scala @@ -1,9 +1,9 @@ object Test extends App { - println((1 to 100000).toList.sort(_<_).length) - println(List(1, 5, 10, 3, 2).toList.sort(_<_)) - println(List(1, 5, 10, 3, 2).toList.sort(_>_)) - println(List(10).toList.sort(_<_)) - println(List(10,9).toList.sort(_<_)) - println(List[Int]().toList.sort(_<_)) + println((1 to 100000).toList.sortWith(_<_).length) + println(List(1, 5, 10, 3, 2).toList.sortWith(_<_)) + println(List(1, 5, 10, 3, 2).toList.sortWith(_>_)) + println(List(10).toList.sortWith(_<_)) + println(List(10,9).toList.sortWith(_<_)) + println(List[Int]().toList.sortWith(_<_)) } |