Whenever, in the exercise of their authority, the court or judge shall have ordered the deposit or delivery of money or other things, and the order is disobeyed, the court or judge, in addition to punishing such disobedience as for contempt, may make an order requiring the sheriff to take the money or thing, and deposit or deliver it, in conformity with the direction of the court or judge.