using System;
using System.Linq;
using System.Collections.Generic;
class Vehicles {
public string VehId { get; set; }
public string VehName { get; set; }
}
public class Test
{
public static void Main()
{
List<Vehicles> vehicles = new List<Vehicles>() {
new Vehicles(){VehId="LOR",VehName="Lorry"},
new Vehicles(){VehId="CAR",VehName="Car"},
new Vehicles(){VehId="BOA",VehName="Boat"},
new Vehicles(){VehId="PLN",VehName="Plane"},
};
var ordered = vehicles
.OrderByDescending(v => v.VehId == "CAR")
.ThenBy(v => v.VehName);
Console.WriteLine(string.Join(", ", ordered.Select(v => v.VehId + " "+ v.VehName).ToArray()));
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uTGlucTsKdXNpbmcgU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWM7CgpjbGFzcyBWZWhpY2xlcyB7CiAgICAgICAgICAgIHB1YmxpYyBzdHJpbmcgVmVoSWQgeyBnZXQ7IHNldDsgfQogICAgICAgICAgICBwdWJsaWMgc3RyaW5nIFZlaE5hbWUgeyBnZXQ7IHNldDsgfQogICAgICAgIH0KcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJICAgIExpc3Q8VmVoaWNsZXM+IHZlaGljbGVzID0gbmV3IExpc3Q8VmVoaWNsZXM+KCkgeyAKICAgICAgICAgICAgICAgIG5ldyBWZWhpY2xlcygpe1ZlaElkPSJMT1IiLFZlaE5hbWU9IkxvcnJ5In0sCiAgICAgICAgICAgICAgICBuZXcgVmVoaWNsZXMoKXtWZWhJZD0iQ0FSIixWZWhOYW1lPSJDYXIifSwKICAgICAgICAgICAgICAgIG5ldyBWZWhpY2xlcygpe1ZlaElkPSJCT0EiLFZlaE5hbWU9IkJvYXQifSwKICAgICAgICAgICAgICAgIG5ldyBWZWhpY2xlcygpe1ZlaElkPSJQTE4iLFZlaE5hbWU9IlBsYW5lIn0sCiAgICAgICAgICAgIH07CiAgICAgICAgICAgIHZhciBvcmRlcmVkID0gdmVoa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