Click here to Skip to main content
15,883,771 members

Comments by dbaseman (Top 2 by date)

dbaseman 8-Sep-12 16:15pm View    
You want to sort alphabetically? But is List_Data.Month an Int or a String? If it's an Int, then you probably need to use...

return Enum.GetName(typeof(Months), this.Month)
.CompareTo(Enum.GetName(typeof(Months), data.Month));
dbaseman 1-Sep-12 16:26pm View    
What's wrong with this solution?