diff --git a/Liner/Liner/ShipCompareByColor.cs b/Liner/Liner/ShipCompareByColor.cs index c97e27c..b522de5 100644 --- a/Liner/Liner/ShipCompareByColor.cs +++ b/Liner/Liner/ShipCompareByColor.cs @@ -42,6 +42,14 @@ namespace Liner { return xShipColor.CompareTo(yShipColor); } + if (xShip.GetShip.GetType().Name != yShip.GetShip.GetType().Name) + { + if (xShip.GetShip.GetType().Name == "DrawingShip") + { + return -1; + } + return 1; + } if (xShip.GetShip.Ship is EntityLiner xLiner && yShip.GetShip.Ship is EntityLiner yLiner) { string xShipDopColor = xLiner.DopColor.Name;