Record::compare
James Cobban edited this page Feb 1, 2020
·
1 revision
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].