Fastest 1st-worst-1st or worst-1st-worst

My adopted county cricket side, Glamorgan, were last in the entire County Championship in 1994, won the Championship in 1997, and were last again in 2007.

If there’s a county that managed that trifecta in fewer than 13 years, I don’t know of it.

<sigh> The Twins were already cited. But they don’t count, because they weren’t the worst in MLB.

To satisfy the OP (Ameri-centricism aside), Penrith last in 2001, Minor Pemier 2003, last 2007.

Canterbury MP 1942, last 43 & 44, MP 1947.

Miami Heat had the worst record in the league in 88-89. Won the championship in 2006, and had the league’s worst record in 2007-2008. It’s a 19 year gap, but I don’t believe any other NBA team has ever gone from worst - champion - worst ever.