Islam pays a great deal of attention to the rows of worshippers, as it has enjoined straightening the rows and speaks clearly of the virtue and importance of straightening them.
It was narrated from Anas ibn Maalik (may Allaah be pleased with him) that the Prophet (peace and blessings of Allaah be upon him) said: “Straighten your rows, for straightening the rows is part of perfecting prayer.” Narrated by al-Bukhaari, 690; Muslim, 433. According to another report narrated by al-Bukhaari (723): “Straighten your rows, for straightening the rows is part of establishing prayer.” It was narrated that Abu Mas’ood (may Allaah be pleased with him) said: The Messenger of Allaah (peace and blessings of Allaah be upon him) used to touch our shoulders when we were praying and he would say: “Make the rows straight and do not differ, lest your hearts differ.” Narrated by Muslim, 432.
So when you are on that congregation prayer please try to remember to check your rows as much as possible. Be conscious of it