Why not go with the following
class MyCustomer : IComparable<MyCustomer>
{
public int ID { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public int CompareTo(MyCustomer? other)
=> ID.CompareTo(other!.ID);
}