- $GLOBALS["col"] = $col; // Column or Columns as an array
- $GLOBALS["dir"] = $dir; // Direction, a positive number for ascending a negative for descending
+ $GLOBALS['col'] = $col; // Column or Columns as an array
+ if ($dir > 0)
+ $dir = 1;
+ else
+ $dir = -1;
+ $GLOBALS['dir'] = $dir; // Direction, a positive number for ascending a negative for descending