SunOpta has reported higher underlying earnings for the first nine months of the year on the back of growth from its foods businesses.