Record::compare - jcobban/Genealogy GitHub Wiki

$record->compare($other)

Up: class Record

Compare two instances of Record. The comparison is done using the primary key so the records are sorted by when they were created. This base implementation is intended to be redefined to have a better definition in each derived class.

Returns a value which is greater than 0 if $other[$prime] is greater than $this[$primt], 0 if $other[$prime] is equal to $this[$primt], and a value which is less than 0 if $other[$prime] is less than $this[$prime].

Next: $record->toXml($top, $print, $options)