Module _SimpleAccess
source code
Provide a simplified database access interface to the GRAMPS
database.
int
|
by_date(event1,
event2)
Sort function that will compare two events by their dates. |
source code
|
|
Imports:
NoneType,
gen,
DateHandler,
Utils,
name_displayer,
ReportUtils,
EventType,
Config
Sort function that will compare two events by their dates.
- Parameters:
event1 (Event) - first event
event2 (Event) - second event
- Returns: int
- Returns -1 if event1 < event2, 0 if they are equal, and 1 if
they are the same.
|