mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
* Ensure sort is stable.
This commit is contained in:
@@ -352,10 +352,16 @@ Query::resultSorter( const result_ptr& left, const result_ptr& right )
|
||||
|
||||
if ( ls == rs )
|
||||
{
|
||||
if ( !left->collection().isNull() && left->collection()->source()->isLocal() )
|
||||
/* if ( left->collection() && left->collection()->source()->isLocal() )
|
||||
{
|
||||
return true;
|
||||
else
|
||||
}*/
|
||||
if ( right->collection() && right->collection()->source()->isLocal() )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return ls > rs;
|
||||
|
Reference in New Issue
Block a user