Ciao, come da manuale - Example#3 - della funzione array_multisort() puoi risolvere così:
Codice PHP:
// $testo[number][name][timestamp]
// Obtain a list of columns
foreach ($testo as $key => $row) {
$name[$key] = $row['name'];
$timestamp[$key] = $row['timestamp'];
}
// Sort the data with volume descending, edition ascending
// Add $data as the last parameter, to sort by the common key
array_multisort($name, SORT_ASC, $timestamp, SORT_ASC, $testo);
![]()