1
0
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:
Christian Muehlhaeuser
2013-09-07 20:53:48 +02:00
parent b929ff7912
commit e2166a0a00

View File

@@ -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;
} }