bugfix - ordering is oposite in events page and mqtt publish

This commit is contained in:
amarofarinha 2024-09-20 09:33:38 +01:00
parent 086c3dfa29
commit eb901da385
4 changed files with 14 additions and 5 deletions

View file

@ -266,7 +266,7 @@ void publish_events() {
}
}
// Sort events by timestamp
std::sort(order_events.begin(), order_events.end(), compareEventsByTimestamp);
std::sort(order_events.begin(), order_events.end(), compareEventsByTimestampAsc);
for (const auto& event : order_events) {