middling (adj.)
1540s, from Scottish mydlyn (mid-15c.), from middle + suffix -ing. Used to designate the second of three grades of goods. As an adverb by 1719.