Everyone knows ... when you're selling your insanely awesome L.A. party mansion -- you HAVE to throw one last rager before you go.
And that's exactly what DeAndre Jordan did Thursday night ... this according to law enforcement sources.
TMZ Sports has learned cops were called to Jordan's SICK $12 MILLION mansion in the Pacific Palisades around midnight after neighbors repeatedly called and complained about the noise.
As we previously reported, Jordan listed the 7 bedroom, 10 bathroom mega-estate earlier this year -- and he finally found a buyer last month.