Getting direct and indirect memberships from the membership libraries in all cases

This allows for ordered membership listings