For sort always use array syntax. Objects have unspecified order. So you do not know if here it will be first sorted by `membersCount` or first by `name`.