Added order by to membership dao queries