Record and RecordKey classes implement comparable