I've got a list already ordered alphabetically but words with special char (i.e. Cárdena) are outputed at the end of the list... is there a way to order alphabetically even the words with special characters in PHP?
The code outputting the list is:
for($i = $infLimit; $i <= $supLimit; $i++){
$adherido = $lista_adheridos_filtrada[$i];
$numberOfAdheridos = count($lista_adheridos_filtrada);
$nombreAdherido = $adherido->getNombreEntidad();
echo '<li><a target="_blank" title="'.$nombreAdherido.'" href="' . $protocol . '://'.$_SERVER["SERVER_NAME"].'/empresas/'.$adherido->getNombreFicha(). '.htm' . ((isset($_REQUEST["lang"]) && $_REQUEST["lang"] == "en") ? "?lang=en": "") . '">'.$nombreAdherido.'</a></li>';
}
P.S: I tried sort($adherido) but it's not working.