Etiquette Of Nimaz
It is not essential; instead, it leads to inconvenience. The Holy Prophet used to straighten the rows, but later, scholars unnecessarily made the command more stringent.