explicitly sort versions returned by API

it's not documented as being in any particular order; assume nothing
fix metadata; must be string: string
fix /check to order chronologically
clean up /in