object Main extends App { val d = List(5, 63, 51, 89) val ds = d.sortWith(_<_) ds.foreach(println)}
5 63 51 89
5 51 63 89
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!