i have a collection of objects and i am looking to sort by a property that is a DateTime?
list.OrderBy(r => r.Milestone)
where milestone is a:
public DateTime? Milestone { get; set; }
it seems to put all of the items with novalue at the top of the sort. Is there anyway to sort by date but put the empty items at the bottom of the list. (i dont care about the ordering of the empty ones of course)
So if i have 4 items:
- 1/1/2001
- 1/1/2002
- [No DateTime]
- 1/1/2004
i would want to order the list 1,2,4,3