invert time sort order, for correct order

This commit is contained in:
Green Sky 2024-01-09 22:36:54 +01:00
parent 1a036c2321
commit d0a53a6366
No known key found for this signature in database

View File

@ -11,7 +11,7 @@ void MessageTimeSort::iterate(void) {
// TODO: maybe only every x for updated // TODO: maybe only every x for updated
for (auto* reg : _to_sort) { for (auto* reg : _to_sort) {
reg->sort<Message::Components::Timestamp>([](const auto& lhs, const auto& rhs) -> bool { reg->sort<Message::Components::Timestamp>([](const auto& lhs, const auto& rhs) -> bool {
return lhs.ts < rhs.ts; return lhs.ts > rhs.ts;
}, entt::insertion_sort{}); }, entt::insertion_sort{});
} }
_to_sort.clear(); _to_sort.clear();