Member ordering rule

Fixes #203
Merge pull request #217 from punya/feature/member-ordering

Member ordering rule