diff --git a/BizHawk.Client.Common/tools/Watch/WatchList/WatchList.cs b/BizHawk.Client.Common/tools/Watch/WatchList/WatchList.cs index f259f95784..0c8b93793c 100644 --- a/BizHawk.Client.Common/tools/Watch/WatchList/WatchList.cs +++ b/BizHawk.Client.Common/tools/Watch/WatchList/WatchList.cs @@ -231,11 +231,14 @@ namespace BizHawk.Client.Common /// Defines the order of the sort. Ascending (true) or descending (false) public void OrderWatches(string column, bool reverse) { - var separatorIndices = _watchList.Select((w, i) => new { watch = w, index = i }) - .Where(w => w.watch.IsSeparator) - .Select(w => w.index) - .ToList(); - + var separatorIndices = new List(); + for (var i = 0; i < _watchList.Count; i++) + { + if (_watchList[i].IsSeparator) + { + separatorIndices.Add(i); + } + } separatorIndices.Add(_watchList.Count); // Sort "blocks" of addresses between separators.