Project member pagination is broken when sorting by max role
If you visit a project members page, then sort by "access level, descending", there appears to be a problem with the db query or the pagination.
Members will often be repeated on multiple pages, and the order seems inconsistent.
For instance, in `www-gitlab-com`'s [project member page](https://gitlab.com/gitlab-com/www-gitlab-com/project_members?sort=access_level_desc), Sid appears on pages 3, 4, and 5:
| page 3 | page 4 | page 5 |
|-----|-----|-----|
|  |  |  |
/cc @jeremy
issue