بسم الله الرحمن الرحيم
(Fatwa: 382/331/H=03/1435)
It is allowable. If both the rows sit opposite to each other so that the holy Quran is not behind back side then it is better. And if it is not possible then there is no harm in following the first method.
Allah knows Best!
Darul Ifta,
Darul Uloom Deoband
