How toSorted() Crashed Our Web App - And How We Fixed It

A few weeks ago, we ran into an unexpected issue that caused our Listing Availabilty page to crash for some landlords. This is the story of…