Bugfixes in MIME stuff
[squirrelmail.git] / functions / array.php
index 99dd1264f67354545c0458bc15ff5c4431a0d2ac..65498fc1c7cea0d18eb88bb310c2e2c05ff543b9 100644 (file)
       }
       $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;
-   }
 ?>