Change sort links to use Filter::buildURL instead of relying on options ...

...saved in the database or cookie.

This fixes problems with losing filters when using "nosave=1" links

Our filters and sorting are still ugly, but I don't have time to overhaul them at the moment.