The oath of all judges of courts inferior to the superior court and the oath of justices of the peace shall be filed in the office of the county recorder, and the oath of all other justices and judges shall be filed in the office of the secretary of state.