From d0a53a6366e3f52e8c84d9fd63dd925ef93e10ce Mon Sep 17 00:00:00 2001 From: Green Sky Date: Tue, 9 Jan 2024 22:36:54 +0100 Subject: [PATCH] invert time sort order, for correct order --- solanaceae/message3/message_time_sort.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solanaceae/message3/message_time_sort.cpp b/solanaceae/message3/message_time_sort.cpp index eb0b9b5..5e0a45f 100644 --- a/solanaceae/message3/message_time_sort.cpp +++ b/solanaceae/message3/message_time_sort.cpp @@ -11,7 +11,7 @@ void MessageTimeSort::iterate(void) { // TODO: maybe only every x for updated for (auto* reg : _to_sort) { reg->sort([](const auto& lhs, const auto& rhs) -> bool { - return lhs.ts < rhs.ts; + return lhs.ts > rhs.ts; }, entt::insertion_sort{}); } _to_sort.clear();