public override int CompareTo(object obj) { if (obj == null) { return(1); } PurchaseItemSlot pr = obj as PurchaseItemSlot; if (pr == null) { return(1); } return(PartRecipe.orderByResultName(this.recipe, pr.recipe)); }