NEW YORK -- A bankruptcy judge on Tuesday approved the sale of Twinkies to a pair of investment firms, one of which has said it hopes to have the cakes back on shelves by summer.

Hostess Brands is selling Twinkies, Ding Dongs, Ho Hos and other brands to Apollo Global Management and Metropoulos & Co. for $410 million. Evan Metropoulos, a principal of the latter firm, said in an interview that he wants to have the snack cakes back on shelves by June and that the brands could benefit from new flavors and other product extensions.

He also said that comedians Will Ferrell and Zach Galifianakis are at the top of his "wish list" for potential pitchmen. But he doesn't plan on formally approaching anyone about marketing deals until after the sale closes in coming weeks.

Judge Robert Drain of the U.S. Bankruptcy Court of the Southern District of New York also approved the $360 million sale of Wonder bread to Flowers Foods, which makes Tastykakes and other breads.

Hostess has said the Justice Department is reviewing that sale.

The sale of Beefsteak to Grupo Bimbo was also approved. Grupo Bimbo makes Entenmann's cakes and Thomas' English muffins and is paying $31.9 million.

A separate hearing is scheduled for April 9 to approve the sale of Drake's cakes, which include Devil Dogs and Yodels. Hostess picked McKee Foods, the maker of Little Debbie snack cakes, as the buyer for those brands at $27.5 million.