Non mi e' venuto in mente nessun modo per farlo direttamente, questo codice comunque dovrebbe funzionare.
Codice PHP:
<?php
$array = array(
88 => 120,
81 => 116,
1 => 114,
85 => 113,
80 => 111,
55 => 111,
82 => 110,
63 => 109,
3 => 109,
86 => 108,
90 => 108,
77 => 108,
8 => 108);
print_r($array);
$output = array();
while (list($key, $val) = each($array)) {
$output[0][] = $key;
$output[1][] = $val;
}
array_multisort($output[1], SORT_NUMERIC, SORT_DESC,
$output[0], SORT_NUMERIC, SORT_DESC);
print_r(array_combine($output[0], $output[1]));
?>