How to sort an object array by date property?
Simplest Answer More Generic Answer Or more tersely: Generic, Powerful Answer Define a custom non-enumerable sortBy function using a Schwartzian transform on all arrays : Use it like so: If your date is not directly comparable, make a comparable date out of it, e.g. You can also use this to sort by multiple criteria if … Read more