mirror of
https://github.com/Radarr/Radarr
synced 2025-01-19 22:21:08 +00:00
parent
d4422e8901
commit
5d2ac0b86b
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ public int Compare(List<CustomFormat> left, int right)
|
||||||
left = left.WithNone();
|
left = left.WithNone();
|
||||||
|
|
||||||
var leftIndicies = GetIndicies(left, _profile);
|
var leftIndicies = GetIndicies(left, _profile);
|
||||||
var rightIndex = _profile.FormatItems.FindIndex(v => Equals(v.Format, right));
|
var rightIndex = _profile.FormatItems.FindIndex(v => Equals(v.Format.Id, right));
|
||||||
|
|
||||||
return leftIndicies.Select(i => i.CompareTo(rightIndex)).Sum();
|
return leftIndicies.Select(i => i.CompareTo(rightIndex)).Sum();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue