Fisharebest\Webtrees\Module\RecentChangesModule::sortByNameAndChangeDate PHP Méthode

sortByNameAndChangeDate() private static méthode

Sort the records by (1) name and (2) last change date
private static sortByNameAndChangeDate ( Fisharebest\Webtrees\GedcomRecord $a, Fisharebest\Webtrees\GedcomRecord $b ) : integer
$a Fisharebest\Webtrees\GedcomRecord
$b Fisharebest\Webtrees\GedcomRecord
Résultat integer
    private static function sortByNameAndChangeDate(GedcomRecord $a, GedcomRecord $b)
    {
        return GedcomRecord::compare($a, $b) ?: $b->lastChangeTimestamp(true) - $a->lastChangeTimestamp(true);
    }