app/GedcomRecord.php
public static function lastChangeComparator(int $direction = 1): Closure
    {
        return static function (GedcomRecord $x, GedcomRecord $y) use ($direction): int {
            return $direction * ($x->lastChangeTimestamp() <=> $y->lastChangeTimestamp());
        };
    }
public static function lastChangeComparator(int $direction = 1): Closure
    {
        return static function (GedcomRecord $x, GedcomRecord $y) use ($direction): int {
            return $direction * ($x->lastChangeTimestamp() <=> $y->lastChangeTimestamp());
        };
    }
public static function lastChangeComparator ( int $ direction = 1 ) : Closure { return static function ( GedcomRecord $ x , GedcomRecord $ y ) use ( $ direction ) : int { return $ direction * ( $ x -> lastChangeTimestamp ( ) <=> $ y -> lastChangeTimestamp ( ) ) ; } ; }
A closure which will compare records by change time.

@param int $direction +1 to sort ascending, -1 to sort descending

@return Closure
A closure which will compare records by change time .