Боровков М В ПИбд-22 8 лабораторная работа #9

Closed
bekodeg wants to merge 2 commits from labWork8 into labWork7
Showing only changes of commit f70ddb3599 - Show all commits

View File

@ -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());
}