Better sales and gross margins at its namesake brand have helped women's wear retailer Ann Taylor Stores Corporation swing to a second quarter profit.