Atomic masses in the periodic table are arranged from the left to right. The chemists calculate the mass of each element, and then they ranked the masses in order, simply atomic numbers. Atomic mass also used to arrange things in order. Also, atomic mass shows the mass of each element.
Hope this helps =)