diff --git a/ElectricLocomotive/Generics/LocomotiveCompareByColor.cs b/ElectricLocomotive/Generics/LocomotiveCompareByColor.cs index ac9ad53..af0aa18 100644 --- a/ElectricLocomotive/Generics/LocomotiveCompareByColor.cs +++ b/ElectricLocomotive/Generics/LocomotiveCompareByColor.cs @@ -24,7 +24,7 @@ namespace ProjectElectricLocomotive.Generics { return x.EntityLocomotive.BodyColor.ToArgb().CompareTo(y.EntityLocomotive.BodyColor.ToArgb()); } - if (x.EntityLocomotive.BodyColor.ToArgb().CompareTo(y.EntityLocomotive.BodyColor.ToArgb()) != 0) + if (x.EntityLocomotive.BodyColor.ToArgb().CompareTo(y.EntityLocomotive.BodyColor.ToArgb()) == 0) { return x.EntityLocomotive.BodyColor.ToArgb().CompareTo(y.EntityLocomotive.BodyColor.ToArgb()); }