adding sort and direction to pull requests