If judgment is rendered for the state in any action, the county timber inspector shall sell the logs, timber, lumber, staves, shingles, shingle bolts, stocks, headings, wood, bark, stone, mineral, or other material at public sale but may sell the materials at private sale upon order of the court rendering judgment or upon order of the judge thereof, either in term time or vacation.