Bugfixes in MIME stuff
[squirrelmail.git] / functions / array.php
index 049f63ca56b89abe0ba740ab97c85d211a59554c..65498fc1c7cea0d18eb88bb310c2e2c05ff543b9 100644 (file)
@@ -1,6 +1,6 @@
 <?
    /**
-    **  array.php3
+    **  array.php
     **
     **  This contains functions that work with array manipulation.  They
     **  will help sort, and do other types of things with arrays
       }
       $GLOBALS["col"] = $col;  // Column or Columns as an array
       $GLOBALS["dir"] = $dir;  // Direction, a positive number for ascending a negative for descending
-  
-      function comp2($a,$b,$i = 0) {
+
+      usort($ary,comp2);
+      return $ary;
+  }
+
+  function comp2($a,$b,$i = 0) {
          global $col;
          global $dir;
          $c = count($col) -1;
@@ -34,8 +38,4 @@
          }
          return $r;
       }
-  
-      usort($ary,comp2);
-      return $ary;
-   }
 ?>