A man who was caught dealing Class A drugs on the streets of Bradford has just avoided an immediate jail sentence after it took three years to put his case before the courts.