src/EFCore/ChangeTracking/Internal/SortableBindingList.cs
/// <summary>
///     This API supports the Entity Framework Core infrastructure and is not intended to be used
///     directly from your code. This API may change or be removed in future releases.
/// </summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code . This API may change or be removed in future releases .
protected override void ApplySortCore(PropertyDescriptor prop, ListSortDirection direction)
        {
            if (PropertyComparer.CanSort(prop.PropertyType))
            {
                ((List<T>)Items).Sort(new PropertyComparer(prop, direction));
                _sortDirection = direction;
                _sortProperty = prop;
                _isSorted = true;
                OnListChanged(new ListChangedEventArgs(ListChangedType.Reset, -1));
            }
        }
protected override void ApplySortCore ( PropertyDescriptor prop , ListSortDirection direction ) { if ( PropertyComparer . CanSort ( prop . PropertyType ) ) { ( ( List < T > ) Items ) . Sort ( new PropertyComparer ( prop , direction ) ) ; _sortDirection = direction ; _sortProperty = prop ; _isSorted = true ; OnListChanged ( new ListChangedEventArgs ( ListChangedType . Reset , - 1 ) ) ; } }
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code.
This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code .
prop
PropertyDescriptor
direction
ListSortDirection