Virtue of monk and lay ariya If there's a monk without any attainment of awakening yet and a layperson with some stage of attainment (say sotapanna, anagami), what does the sutta text say about virtue of them?
Monasticism is a vehicle, not a destination; simply putting on the robes doesn't make one more virtuous.

A monk without any attainment whatsoever is not worth being called a monk. A true monk is defined by their attainments, as per the Dhammapada (Buddharakkhita, trans):


  9. Whoever being depraved, devoid of self-control and truthfulness, should don the monk’s yellow robe, he surely is not worthy of the robe.
  
  362. He who has control over his hands, feet and tongue; who is fully controlled, delights in inward development, is absorbed in meditation, keeps to himself and is contented — him do people call a monk. 
  
  367. He who has no attachment whatsoever for the mind and body, who does not grieve for what he has not — he is truly called a monk.


If one is corrupt, they are not considered worthy of being called a recluse:


  184. Enduring patience is the highest austerity. "Nibbana is supreme," say the Buddhas. He is not a true monk who harms another, nor a true renunciate who oppresses others.


Also relevant:


  260. A monk is not an elder because his head is gray. He is but ripe in age, and he is called one grown old in vain.
  
  261. One in whom there is truthfulness, virtue, inoffensiveness, restraint and self-mastery, who is free from defilements and is wise — he is truly called an Elder.
  
  307. There are many evil characters and uncontrolled
  men wearing the saffron robe. These wicked men
  will be born in states of woe because of their evil
  deeds.
  
  394. What is the use of your matted hair, O witless
  man? What of your garment of antelope’s hide?
  Within you is the tangle (of passion); only out-
  wardly do you cleanse yourself.
  
  395. The person who wears a robe made of rags, who
  is lean, with veins showing all over the body, and
  who meditates alone in the forest – him do I call
  a holy man


That being said, there is a little-known but pithy passage in the Sutta Nipata (vv. 220-221; Ireland, trans) where the Buddha says:


  These two ways of life are not the same:
  that of a householder supporting a wife
  and one without worldly attachments...
  
  As a peacock never approaches the swiftness
  of a swan, so a householder cannot imitate a
  bhikkhu, a hermit meditating in the forest.


Again, this only applies if all else (i.e. their practice and attainments) is equal.