Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- My:
- object Text {
- def order (str:String):String={
- str.split(" ")
- .sortWith(_.replaceAll("[^0-9]+", "")<_.replaceAll("[^0-9]+", ""))
- .toList
- .mkString(" ")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement