Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// See the LICENSE file in the project root for more information.

using CommunityToolkit.WinUI.Helpers;
using System;
using System.CodeDom;
using System.Collections;
using System.Collections.Specialized;
using System.Runtime.CompilerServices;
Expand Down Expand Up @@ -388,7 +390,11 @@ int IComparer<object>.Compare(object x, object y)
var listType = _source?.GetType();
Type type;

if (listType != null && listType.IsGenericType)
if (listType == typeof(IncrementalLoadingCollection))
{
type = listType.GetGenericArguments()[1];
}
else if (listType != null && listType.IsGenericType)
{
type = listType.GetGenericArguments()[0];
}
Expand Down