$array = array(
array( "hallo welt", 1 ),
array( "hallo wald", 2 ),
array( "Heinrich wald", 2 ),
array( "albert wald", 2 ),
array( "adolf wald", 2 ),
array( "adalbert wald", 2 ),
array( "Adolf alban", 2 ),
array( "Ärmel Los", 2 ),
array( "Urmel aus dem Eis", 2 ),
array( "Ürügü Ütschügü", 2 )
);function sort_callback( $a, $b )
{
// resolve reference and case issues
$a = strtoupper( $a[0] );
$b = strtoupper( $b[0] );// trim specialchars
$from = array( 'Ä', 'Ö', 'Ü', 'ß' );
$to = array( 'A', 'O', 'U', 'SS' );
str_replace( $from, $to, $a);
str_replace( $from, $to, $b);// evaluate position
return $a == $b ? 0 : $a > $b ? 1 : -1;
}weiterhin schönen abend...
hallo globe
vielen dank für deine antwort
ich weiss nicht an was es liegt, aber bei mir läuft das ding nicht die umlaute sind imer am schluss :-(
langsam bin ich ordentlich frustriert
kann das eine einstellung am server sein??
ich hab mir $a und $b mal ausgeben lassen:
str_replace( $from, $to, $b);
echo $a;
// evaluate position
da waren die Äs Üs Ös und ß noch drin
vielen dank trotz allem
Gruß Rüdiger