Sorting the list of members

Sorting the list before return it