Hi all

I am trying to sort dates into ascending order

I currently have a structure to represent dates

Code:
struct dates{

char month[10];
int day;
int year;


};
I then have an array of type struc date, which stores each date input by the user.

My question is. How do I sort the dates into ascending order when it is input in the following format:

Jan(date.month) 10(date.day) 01(date.year)

I am not looking for code but rather an explanation as to how this can be achieved.

Thank you