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