"\u{0621}", "\xd9\x88" => "\u{0649}", "\xd9\xb2" => "\xF3\xB3\x80\x81", "\xd9\xb3" => "\xF3\xB3\x80\x82", ]; public function __construct() { parent::__construct( 'fa' ); } public function getSortKey( $string ) { $modified = strtr( $string, $this->override ); return parent::getSortKey( $modified ); } public function getFirstLetter( $string ) { if ( isset( $this->override[substr( $string, 0, 2 )] ) ) { return substr( $string, 0, 2 ); } return parent::getFirstLetter( $string ); } }