Stabilize symbol sorting.

This commit is contained in:
Bartosz Taudul 2020-04-08 15:55:34 +02:00
parent fe98921e4c
commit a34cfacb5c

View File

@ -11393,11 +11393,11 @@ void View::DrawStatistics()
{ {
if( m_statSelf ) if( m_statSelf )
{ {
pdqsort_branchless( data.begin(), data.end(), []( const auto& l, const auto& r ) { return l.excl > r.excl; } ); pdqsort_branchless( data.begin(), data.end(), []( const auto& l, const auto& r ) { return l.excl != r.excl ? l.excl > r.excl : l.symAddr < r.symAddr; } );
} }
else else
{ {
pdqsort_branchless( data.begin(), data.end(), []( const auto& l, const auto& r ) { return l.incl > r.incl; } ); pdqsort_branchless( data.begin(), data.end(), []( const auto& l, const auto& r ) { return l.incl != l.incl ? l.incl > r.incl : l.symAddr < r.symAddr; } );
} }
ImGui::BeginChild( "##statisticsSampling" ); ImGui::BeginChild( "##statisticsSampling" );