1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-22 08:52:12 +02:00

Fix sorting order

This commit is contained in:
Anton Romanov 2016-01-19 16:35:38 -08:00
parent 0535d09f08
commit 1e6b8b3747

@ -403,12 +403,12 @@ Query::resultSorter( const result_ptr& left, const result_ptr& right )
{
return false;
}
if ( !right->isPreview() )
if ( left->isPreview() != right->isPreview() )
{
return false;
return !left->isPreview();
}
return right->resolvedBy()->weight() > left->resolvedBy()->weight();
return right->resolvedBy()->weight() < left->resolvedBy()->weight();
}
if ( left->isPreview() != right->isPreview() )