public int CompareTo(IListBoxItem other) { WaypointResource way = other as WaypointResource; if (way != null) return CompareTo(way); return 0; }