A defendant sentenced to imprisonment for a violation of a borough ordinance may be committed to:
8 Pa.C.S. § 3323