Fixed sort of sources so that the layer number is taken into account.
This commit is contained in:
@@ -3842,7 +3842,10 @@ struct DerefLessFunctor
|
||||
{
|
||||
bool operator () (const T& lhs, const T& rhs)
|
||||
{
|
||||
return (lhs.valid() && rhs.valid()) && (lhs->getSortValue() > rhs->getSortValue());
|
||||
if (!lhs || !rhs) return lhs<rhs;
|
||||
if (lhs->getLayer() < rhs->getLayer()) return true;
|
||||
if (rhs->getLayer() < lhs->getLayer()) return false;
|
||||
return (lhs->getSortValue() > rhs->getSortValue());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user