- function array_sort($arr, $field, $by = SORT_ASC)
- {
- foreach ($arr as $v) {
- $r[] = $v[$field];
- }
- array_multisort($r, $by, $arr);
- return $arr;
- }
- //该片段来自于http://www.codesnippet.cn/detail/040920135626.html
来源: http://www.codesnippet.cn/detail/040920135626.html