How can I sort a list by id in c# that contains Book
items?
static List<Book> sorted = new List<Book>();
public string title { get; set; }
public string summary { get; set; }
public int id { get; set; }
public int numberofauthors { get; set; }
public string author {get; set;}
But I want to sort the whole list and not only the sorted[k].id
column.