<?
/**
- ** 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;
}
return $r;
}
-
- usort($ary,comp2);
- return $ary;
- }
?>