I have a generic list…
public List<ApprovalEventDto> ApprovalEvents
The ApprovalEventDto has
public class ApprovalEventDto { public string Event { get; set; } public DateTime EventDate { get; set; } }
How do I sort the list by the event date?
You can use List.Sort() as follows: