Implemented version list sorting.

Resolves MMC-8:
	https://jira.forkk.net/browse/MMC-8
This commit is contained in:
Andrew
2013-05-03 20:14:38 -05:00
parent 055198303c
commit 857a4e4dbe
7 changed files with 90 additions and 3 deletions

View File

@@ -41,6 +41,16 @@ InstVersionList *InstVersion::versionList() const
return (InstVersionList *)parent();
}
bool InstVersion::isLessThan(const InstVersion &other) const
{
return timestamp() < other.timestamp();
}
bool InstVersion::isGreaterThan(const InstVersion &other) const
{
return timestamp() > other.timestamp();
}
bool InstVersion::isMeta() const
{
return false;