invert time sort order, for correct order
This commit is contained in:
parent
1a036c2321
commit
d0a53a6366
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user