Dear student,
The periodic table is a tabular display of the chemical elements organized on the basis of their atomic numbers. Elements are presented in increasing atomic number. Electronic configuration, in turn, depends on atomic number.
The elements with same number of total count of orbit (or shells) are placed in the same period of modern periodic table.
The elements with same number of valence electrons (e- in outermost orbit) are placed in the same group of modern periodic table.
Regards