Make pagination happen after group_by parties

Fixes #105