A drug dealer caught “peddling misery on the streets of Bradford” has been put behind bars for more than five years.