what is the difference between line and row?
In your context, a line runs from front to back; a row runs from side to side. A military line runs from side to side; If there is one line of soldiers behind another line of soldiers, then these lines are called ranks; a military line running from front to back is a column (especially when marching.)