2 ms·
A better solution than that has been in heavy use for a decade in C#. Works on anything that implements `IEnumerable`. db.Orders.Sort(o => o.StartDate) I'
by mattmanser 10y ago
A better solution than that has been in heavy use for a decade in C#. Works on anything that implements `IEnumerable`.
db.Orders.Sort(o => o.StartDate)
I've also never found ordering code to be the bulk of my logic, but whatever.
Anyway, generics. Without having to muck around with funky designs for your classes.