Assigning a distance by redshift
The Hubble law lets us use a simple spectrum of a galaxy to figure out
where it is along the line-of-sight. Higher redshifts indeed go with smaller and fainter looking galaxies.