diff --git a/profiler/src/profiler/TracyView_Timeline.cpp b/profiler/src/profiler/TracyView_Timeline.cpp index d9b0d70b..010ce1ed 100644 --- a/profiler/src/profiler/TracyView_Timeline.cpp +++ b/profiler/src/profiler/TracyView_Timeline.cpp @@ -368,7 +368,8 @@ void View::DrawTimeline() m_threadOrder.reserve( threadData.size() ); for( size_t i=m_threadOrder.size(); igroupHint, []( const auto& lhs, const auto& rhs ) { return lhs < rhs->groupHint; } ); + m_threadOrder.insert( it, threadData[i] ); } } for( const auto& v : m_threadOrder )