$lines = explode( "\n", shell_exec( 'git log --format="%aN"' ) );
foreach ( $lines as $line ) {
- if ( empty( $line ) ) {
+ if ( empty( $line ) ) {
continue;
}
if ( substr( $line, 0, 5 ) === '[BOT]' ) {
}
$contributors = array_keys( $contributors );
-$collator = Collator::create( 'uca-default-u-kn' );
+$collator = Collator::create( 'root' );
+$collator->setAttribute( Collator::NUMERIC_COLLATION, Collator::ON );
$collator->sort( $contributors );
array_walk( $contributors, function ( &$v, $k ) {
$v = "* {$v}";