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:
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() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user