In the insular world of Long Island real estate, it’s a record — the most expensive sale outside of the Hamptons, said Mr.