A prisoner who violates any condition specified by the court for his conduct, custody or employment shall be reported by the sheriff to the court, which may then order that the balance of his sentence or commitment be spent in actual confinement and that any earned reduction of his term be forfeited.