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

@ -30,7 +30,7 @@ String events_processor(const String& var) {
}
}
// Sort events by timestamp
std::sort(order_events.begin(), order_events.end(), compareEventsByTimestamp);
std::sort(order_events.begin(), order_events.end(), compareEventsByTimestampDesc);
unsigned long timestamp_now = millis();
// Generate HTML and debug output