Changeset 19 for minimanager/scripts/global_lib.php
- Timestamp:
- Aug 13, 2007, 9:05:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/scripts/global_lib.php
r5 r19 137 137 } 138 138 139 //########################################################################################## 140 function aasort(&$array, $field, $order = false){ 141 if(is_string($field)) $field = "'$field'"; 142 $order = ($order ? '<' : '>'); 143 usort($array, 144 create_function('$a, $b', 145 'return ($a['.$field.'] == $b['.$field.'] ? 0 :($a['.$field.'] '.$order.' $b['.$field.']) ? 1 : -1);') 146 ); 147 } 139 148 ?>
Note:
See TracChangeset
for help on using the changeset viewer.