[mcs] Fix order of members (#19509)

Emit all method like members in same order as they appear in source
code. Fixes #19509.

Change-Id: I236053e40adbebd569697f3ada5080023008e8d3