What evidence is there from fossils to suggest that reptiles lived before mammals?

Because the skeletons of what we believe to have been reptiles have been found deeper in the earth than the skeletons of what we believe to have been be mammals.