1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-01-17 06:18:17 +01:00

Sort equal results by resolver's weight

This commit is contained in:
Anton Romanov 2016-01-19 11:10:18 -08:00
parent c93302c563
commit 0535d09f08

View File

@ -408,7 +408,7 @@ Query::resultSorter( const result_ptr& left, const result_ptr& right )
return false;
}
return true;
return right->resolvedBy()->weight() > left->resolvedBy()->weight();
}
if ( left->isPreview() != right->isPreview() )