Allow member list to be sorted by last_active_at
Visit /projects/1/members
. You will see one member. So, add some more:
%> user = FactoryBot.create(:user)
%> user.add_role(:member, Project.first)
%> user = FactoryBot.create(:user)
%> user.add_role(:member, Project.first)
Visit /projects/1/members
again and you'll see three members. The one with the highest id will be listed first. This is because the default sort is for the last_active_at to be the latest.
Visit /projects/1/members?sort=oldest
and you will see the sort order changed. User id 1 will be first because it's the oldest.
Edited by Anthony Shull