Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / Event.cpp
diff options
context:
space:
mode:
1 files changed, 3 insertions, 1 deletions
-rw-r--r--src/Models/Event.cpp4
diff --git a/src/Models/Event.cpp b/src/Models/Event.cpp
index f570fbf..034e4b3 100644
--- a/src/Models/Event.cpp
+++ b/src/Models/Event.cpp
@@ -30,5 +30,7 @@ const Date& Event::get_date() const {
}
int Event::compare(const Event& other) {
- return name.compare(other.name);
+ if (hall == other.hall)
+ return date.compare(other.date);
+ return hall->compare(*other.hall);
}