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
.OrderBy(v => v.VehId == "PLN" || v.VehId == "CAR")
.ThenBy(v => v.VehName);
Console.WriteLine(string.Join(", ", ordered.Select(v => v.VehId + " "+ v.VehName).ToArray()));
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uTGlucTsKdXNpbmcgU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWM7CgpjbGFzcyBWZWhpY2xlcyB7CiAgICAgICAgICAgIHB1YmxpYyBzdHJpbmcgVmVoSWQgeyBnZXQ7IHNldDsgfQogICAgICAgICAgICBwdWJsaWMgc3RyaW5nIFZlaE5hbWUgeyBnZXQ7IHNldDsgfQogICAgICAgIH0KcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJICAgIExpc3Q8VmVoaWNsZXM+IHZlaGljbGVzID0gbmV3IExpc3Q8VmVoaWNsZXM+KCkgeyAKICAgICAgICAgICAgICAgIG5ldyBWZWhpY2xlcygpe1ZlaElkPSJMT1IiLFZlaE5hbWU9IkxvcnJ5In0sCiAgICAgICAgICAgICAgICBuZXcgVmVoaWNsZXMoKXtWZWhJZD0iQ0FSIixWZWhOYW1lPSJDYXIifSwKICAgICAgICAgICAgICAgIG5ldyBWZWhpY2xlcygpe1ZlaElkPSJCT0EiLFZlaE5hbWU9IkJvYXQifSwKICAgICAgICAgICAgICAgIG5ldyBWZWhpY2xlcygpe1ZlaElkPSJQTE4iLFZlaE5hbWU9IlBsYW5lIn0sCiAgICAgICAgICAgIH07CiAgICAgICAgICAgIHZhciBvcmRlcm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