People also sit in different positions during prayer.
All positions which people use when they sit during prayer are permissible. However, it is recommended in the last sitting of a prayer consisting of three or four rak'ahs to bring ones left leg under the right one and allow one's left hip to be in contact with the ground. When you stand up in congregational prayer you must make sure that the row in which you stand is straight. Each row begins in the middle, right behind the imam, and worshippers should stand on both the right and left sides of the imam. They stand shoulder to shoulder to make their rows straight.