changes to MGC class library
[IRC.git] / Robust / src / ClassLibrary / MGC / gnu / Collections.java
index 748ade0fd6c0586736ab75ca9b94e1eecd2477de..a51c160a5aacfa8361a659ea4d831de1c78331b6 100644 (file)
@@ -94,9 +94,25 @@ public class Collections
        i.next();
        i.set(a[pos]);
       }*/
-    //TODO System.println("Collections.sort() invoked");
+    //TODO 
+    System.println("Collections.sort() invoked");
   }
   
+  public static  void sort(List l, Comparator c)
+  {
+    /*Object[] a =  l.toArray();
+    Arrays.sort(a, c);
+    ListIterator i = l.listIterator();
+    for (int pos = 0, alen = a.length;  pos < alen;  pos++)
+      {
+       i.next();
+       i.set(a[pos]);
+      }*/
+//    TODO 
+      System.println("Collections.sort(l, c) invoked");
+  }
+
+  
   static final /*<T>*/ int compare(Object/*T*/ o1, Object/*T*/ o2, Comparator/*<? super T>*/ c)
   {
     return c == null ? ((Comparable) o1).compareTo(o2) : c.compare(o1, o2);