using System;
using System.Xml;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
This is a more general answer to this error i suppose.
This line will fail with the error you got:
Items.OrderByDescending(t => t.PointXYZ);
However you can specify how to compare it directly:
Items.OrderByDescending(t => t.PointXYZ.DistanceTo(SomeOtherPoint))
Then you dont need the IComparable interface. Depends on the API you are using. In my case i have a Point and a DistanceTo-method. (Revit API) But an integer should be even easier to determine the "size/position" of.