[code-quality] inference ordering