Hi guys i need your help. I have a task at uni about sorting a dictionary. It's properties are :
Dictionary<string, Book> nameAndDate = new Dictionary<string, Book>();
Where the class Book has properties :
 class Book
{
    public string NAME;
    public string Date;
    public DateTime DateAsDate;
    public Book(string bookName , string date,DateTime dateAsDate)
    {
        this.NAME = bookName;
        this.Date = date;
        this.DateAsDate = dateAsDate;
    }
}
So my question is how can I sort the keys by ascending so that when i give the books a name and a date it would write them like this
HP1 -> 26.06.1997
HP7 -> 21.07.2007
AC -> 20.11.2009
 
    