Fixing sort links to include filtering criteria