$count = count($data);
if($count == 0)
return;
elseif($count == 1)
return $data;
print_r(bulle_sort($array));
-------------------------------------------
for($i = 0; $i < $count; $i ++) {
for ($j = $count - 1; $j > $i; $j --){
if ($data[$j-1] > $data[$j]){
$temp = $data[$j-1];
$data[$j-1] = $data[$j];
$data[$j] = $temp;
}
}
}