using System.Collections.Generic;
public Cars(string a, string b, int c,double d)
{Console.WriteLine("{0},{1},{2},{3}",this.Mark,this.Model,this.Year,this.Mileage);
public static void Main()
List <Cars> cars=new List<Cars>();
Cars car1= new Cars("Civik","Honda",2004,15000);
Cars car2= new Cars("Accord","Honda",2001,16325);
Cars car3= new Cars("Capa","Honda",2010,455);
Cars car4= new Cars("City","Honda",2005,13988);
Cars car5= new Cars("Airwave","Honda",2014,1354);
List<Cars> sortedList= cars
.OrderBy(a=>a.Year).ToList();
foreach(Cars year in cars)year.Print();