Assert the order of the members directory's list: the names, from the first.
Examples
Then the members directory should list "Administrator Test", "Member Test" and "Moderator Test" in this order
And the members directory should list "member" and "moderator" in this order
Then the members directory should list "Newcomer Test" and "Organizer Test" in this order
And the members directory should list "admin", "member" and "newcomer" in this order
Then the members directory should list "Moderator Test" and "Newcomer Test" in this order
Pattern
Then(/^the members directory should list ((?:"[^"]*"(?:, | and )?)+) in this order$/, …)
Part of @webship-js/buddypress-steps (github.com/webship/buddypress-steps), a step pack for Webship-js 2.0.x.