Ann Taylor swings to profit amid lower costs