3-1-111. Powers respecting conduct of business. Every court has power to:
(1) preserve and enforce order in its immediate presence;
(2) enforce order in the proceedings before it or before a person or persons empowered to conduct a judicial investigation under its authority;
(3) provide for the orderly conduct of proceedings before it or its officers;
(4) compel obedience to its judgments, orders, and process and to the orders of a judge out of court in an action or proceeding pending therein;
(5) control, in furtherance of justice, the conduct of its ministerial officers and of all other persons in any manner connected with a judicial proceeding before it in every other matter appertaining thereto;
(6) compel the attendance of persons to testify in an action or proceeding pending therein in the cases and manner provided in this code;
(7) administer oaths in an action or proceeding pending therein and in all other cases where it may be necessary in the exercise of its powers and duties;
(8) amend and control its process and orders so as to make them conformable to law and justice.