<PackageReference Include="Microsoft.Bcl" Version="1.1.8" />

System.Collections.IStructuralComparable

public interface IStructuralComparable
Supports the structural comparison of collection objects.
int CompareTo(object other, IComparer comparer)

Determines whether the current collection object precedes, occurs in the same position as, or follows another object in the sort order.