I have an assignment for school that I'm having trouble with. The assignment is to create a console app that allows users to add, modify and view a list of movies. Each movie contains attributes like a title, a year, a director, etc. I have to use the following structs:
struct Movie{
public string title;
public string year;
public string director;
public float quality;
public string mpaaRating;
public string genre;
public List<string> cast;
public List<string> quotes;
public List<string> keywords;
}
struct MovieList{
public int length;
public Movie[] movie;
}
...
MovieList List = new MovieList()
Here's the part I'm having trouble with. I need to sort List by the movie title. I'm having trouble figuring out what the correct way to go about this is. Anyone have any advice?