Fix QualityModelComparer test when respecting group order
This commit is contained in:
parent
00ca91399a
commit
8ea24a6b09
|
@ -31,8 +31,8 @@ namespace NzbDrone.Core.Qualities
|
||||||
|
|
||||||
public int Compare(Quality left, Quality right, bool respectGroupOrder)
|
public int Compare(Quality left, Quality right, bool respectGroupOrder)
|
||||||
{
|
{
|
||||||
var leftIndex = _profile.GetIndex(left);
|
var leftIndex = _profile.GetIndex(left, respectGroupOrder);
|
||||||
var rightIndex = _profile.GetIndex(right);
|
var rightIndex = _profile.GetIndex(right, respectGroupOrder);
|
||||||
|
|
||||||
return leftIndex.CompareTo(rightIndex, respectGroupOrder);
|
return leftIndex.CompareTo(rightIndex, respectGroupOrder);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue