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