sort tests in scala
scala as a wrapper