passed the sort into the pagination so we get it on all pages

Resolves http://bugs.web2project.net/view.php?id=1617