public static int SortByRating(Movie m1, Movie m2) { return(String.Compare(m1.rating.ToString(), m2.rating.ToString(), StringComparison.CurrentCultureIgnoreCase)); }
public static int SortByTitle(Movie m1, Movie m2) { return(String.Compare(m1.Name, m2.Name, StringComparison.CurrentCultureIgnoreCase)); }