Make generated API have stable order