1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-02 12:20:45 +02: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 false;
} }
return true; return right->resolvedBy()->weight() > left->resolvedBy()->weight();
} }
if ( left->isPreview() != right->isPreview() ) if ( left->isPreview() != right->isPreview() )