src/Pure/library.scala
changeset 44609 6ec4a5eb2fc0
parent 44573 51f8895b9ad9
child 44617 5db68864a967
--- a/src/Pure/library.scala	Wed Aug 31 17:22:49 2011 +0200
+++ b/src/Pure/library.scala	Wed Aug 31 17:36:10 2011 +0200
@@ -14,6 +14,7 @@
 import scala.swing.ComboBox
 import scala.swing.event.SelectionChanged
 import scala.collection.mutable
+import scala.util.Sorting
 
 
 object Library
@@ -61,6 +62,13 @@
 
   def split_lines(str: String): List[String] = space_explode('\n', str)
 
+  def sort_strings(args: Seq[String]): List[String] =
+  {
+    val a = args.toArray
+    Sorting.quickSort(a)
+    a.toList
+  }
+
 
   /* iterate over chunks (cf. space_explode) */