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