1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-22 00:42:04 +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

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