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