Added sorting memberships by its end date, or future date if end date is
not present. (#46)