The Messenger of Allah (ﷺ) gave the decision that the two adversaries should be made to sit in front of the judge.
Sunan Abi Dawud Book 25, Hadith 18