<?php
$array = array(
array(
"name" => "Delta",
"other1" => "other data...",
"other2" => "other data...",
),
array(
"name" => "Beta",
"other1" => "other data...",
"other2" => "other data...",
),
array(
"name" => "Alpha",
"other1" => "other data...",
"other2" => "other data...",
),
);
print_r(usort($array, function($a, $b) {
return strcmp($a['name'], $b['name']);
}));
preferences:
39.89 ms | 402 KiB | 5 Q