Skip to content

Instantly share code, notes, and snippets.

git diff --name-only
@wickedshimmy
wickedshimmy / gist:1690202
Created January 27, 2012 18:34 — forked from petejohanson/gist:1690043
Fun Friday Algorithm!
new[] {
new DateTime (2012, 01, 01, 13, 0, 0),
new DateTime (2012, 01, 01, 9, 0, 0),
new DateTime (2012, 01, 02, 1, 0, 0),
new DateTime (2012, 01, 02, 23, 10, 0),
}.OrderBy (dt => dt.Date)
.ThenByDescending (dt => dt);