Prova con un codice simile a questo:

Codice PHP:
<pre>
<?php 
$array 
= array(
                array(
'id' => 5'value' => 5),
                array(
'id' => 4'value' => 4),
                array(
'id' => 3'value' => 3),
                array(
'id' => 2'value' => 2),
                array(
'id' => 1'value' => 1),
              );

// from [url]http://linux.wku.edu/~lamonml/algor/sort/bubble.html[/url]
function bubbleSort(&$elements$size$index) {
  for (
$i = ($size 1); $i >= 0$i--) {
    for (
$j 1$j <= $i$j++){
      if (
$elements[$j 1][$index] > $elements[$j][$index])
      {
        
$temp $elements[$j 1];
        
$elements[$j 1] = $elements[$j];
        
$elements[$j] = $temp;
      }
    }
  }
}

print_r($array);
bubbleSort($arraycount($array), 'value');
print_r($array);
?>
</pre>
P.S.
Per il futuro, se devi postare degli array, ti suggerisco di utilizzare la funzione var_export() in modo che che cerca di aiutarti possa copiare ed incollare il codice senza doverlo riscriverlo a mano.