mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
Fix sorting order
This commit is contained in:
@@ -403,12 +403,12 @@ Query::resultSorter( const result_ptr& left, const result_ptr& right )
|
|||||||
{
|
{
|
||||||
return false;
|
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() )
|
if ( left->isPreview() != right->isPreview() )
|
||||||
|
Reference in New Issue
Block a user