$a_set[$j]) { $tmp = $a_set[$j]; $key = $j; } $j++; } if ($a_set[$i] != $tmp) { $a_set[$key] = $a_set[$i]; $a_set[$i] = $tmp; } } return $a_set; } ?>