Actually fix message result ordering in API call.

Thanks @charles for pointing out the regression.