-/*****************************************************************/
-/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!! ***/
-/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION. ***/
-/*** + Base level indent should begin at left margin, as ***/
-/*** the first line of the function definition below. ***/
-/*** + All identation should consist of four space blocks ***/
-/*** + Tab characters are evil. ***/
-/*** + all comments should use "slash-star ... star-slash" ***/
-/*** style -- no pound characters, no slash-slash style ***/
-/*** + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD ***/
-/*** ALWAYS USE { AND } CHARACTERS!!! ***/
-/*** + Please use ' instead of ", when possible. Note " ***/
-/*** should always be used in _( ) function calls. ***/
-/*** Thank you for your help making the SM code more readable. ***/
-/*****************************************************************/
-
-function ary_sort($ary,$col, $dir = 1){
- // The globals are used because USORT determines what is passed to comp2
- // These should be $this->col and $this->dir in a class
- // Would beat using globals
- if(!is_array($col)){
- $col = array($col);
- }
- $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
+function ary_sort($ary,$col, $dir = 1)
+{
+ /* The globals are used because USORT determines what is passed to comp2 */
+ /* These should be $this->col and $this->dir in a class */
+ /* Would beat using globals */
+ if (!is_array($col)) {
+ $col = array($col);
+ }
+ $GLOBALS['col'] = $col; /* Column or Columns as an array */
+ if ($dir > 0) {
+ $dir = 1;
+ }
+ else {
+ $dir = -1;
+ }
+ /* Direction, a positive number for ascending a negative for descending */
+ $GLOBALS['dir'] = $dir;