src/Webtrees/Functions/FunctionsPrintLists.php
public static function sortableNames(Individual $individual) {
        $names   = $individual->getAllNames();
        $primary = $individual->getPrimaryName();

        list($surn, $givn) = explode(',', $names[$primary]['sort']);

        $givn = str_replace('@P.N.', 'AAAA', $givn);
        $surn = str_replace('@N.N.', 'AAAA', $surn);

        return array(
            $surn . 'AAAA' . $givn,
            $givn . 'AAAA' . $surn,
        );
    }
public static function sortableNames(Individual $individual) {
        $names   = $individual->getAllNames();
        $primary = $individual->getPrimaryName();

        list($surn, $givn) = explode(',', $names[$primary]['sort']);

        $givn = str_replace('@P.N.', 'AAAA', $givn);
        $surn = str_replace('@N.N.', 'AAAA', $surn);

        return array(
            $surn . 'AAAA' . $givn,
            $givn . 'AAAA' . $surn,
        );
    }
public static function sortableNames ( Individual $ individual ) { $ names = $ individual -> getAllNames ( ) ; $ primary = $ individual -> getPrimaryName ( ) ; list ( $ surn , $ givn ) = explode ( ',' , $ names [ $ primary ] [ 'sort' ] ) ; $ givn = str_replace ( '@P.N.' , 'AAAA' , $ givn ) ; $ surn = str_replace ( '@N.N.' , 'AAAA' , $ surn ) ; return array ( $ surn . 'AAAA' . $ givn , $ givn . 'AAAA' . $ surn , ) ; }
Copy of core function, which is not public.

@param Individual $individual

@return string[]
@see \Fisharebest\Webtrees\Functions\FunctionsPrintLists
Copy of core function which is not public .