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