Sort your data for each country individually

Code
<?php

$array 
= array('a''g''A''ß''ä''j''z');

sort($array);

echo 
'sort = ' implode(','$array) . PHP_EOL;

$collator = new Collator('de_DE');
$collator->setAttribute(Collator::CASE_FIRSTCollator::LOWER_FIRST);
$collator->sort($array);

echo 
'Collator::sort = ' implode(','$array) . PHP_EOL;
Result
sort = A,a,g,j,z,ß,ä
Collator::sort = a,A,ä,g,j,ß,z
Used Versions
PHP 7.1, Zend 3.0, Symfony 3.2, Laravel 5.2, PHPUnit 5.6, Doctrine 2.6