How did Mendeleev organize the elements in the periodic table?

by increasing atomic number from left to right and top to bottom
by decreasing atomic number from left to right and top to bottom
by decreasing atomic mass from left to right and topic to bottom
by increasing atomic mass from left to right and top to bottom