The court may first try and decide upon the grounds to vacate or modify a judgment or order before trying or deciding upon the validity of the defense or cause of action.
R.L. 1910, § 5270.