After being in the red last quarter, Sanmina's (NASDAQ:SANM) bottom line has swung into positive territory. In the company's Q2 results, net sales amounted to $1.43 billion, down from the $1.46 billion in the same period the previous year. The bottom line came in at $21.2 million ($0.25 per diluted share) from Q2 2012's net loss of $1.4 million ($0.02) according to GAAP standards.

On a non-GAAP basis, this most recent quarter's net income was $25.3 million ($0.30 per diluted share), against the year-ago Q2's $24.2 million ($0.29).

Sanmina also proffered forward guidance for its current Q3. The company believes its revenue will come in at $1.45 billion to $1.50 billion, and non-GAAP EPS will total $0.32-$0.38 for the quarter.

Fool contributor Eric Volkman has no position in Sanmina. Nor does The Motley Fool. Try any of our Foolish newsletter services free for 30 days. We Fools don't all hold the same opinions, but we all believe that considering a diverse range of insights makes us better investors. The Motley Fool has a disclosure policy.