-
Couldn't work out why my date sorting function, which worked in tests, was sorting some dates in 2019 before 2001. It turned out I was trying to create a new Date() with dates like '14/09/2019' which JS read as "9th day of the 14th month" so half my dates were NaN 🙃