function array_sorts($array, $column, $type = 'asc')
{
$keysvalue = $new_array = [];
foreach ($array as $k => $v) {
$keysvalue[$k] = $v[$column];
}
if ('asc' === $type) {
asort($keysvalue);
} else {
arsort($keysvalue);
}
reset($keysvalue);
foreach ($keysvalue as $k => $v) {
$new_array[$k] = $array[$k];
}
return array_values($new_array);
}