def get_basic_sort_link(self, request, field):
query_string = self.get_querystring()<EOL>sort_string = self.get_next_sort_string(field)<EOL>if sort_string:<EOL><INDENT>sort_link = request.path + '<STR_LIT:?>' + sort_string<EOL>if query_string:<EOL><INDENT>sort_link += '<STR_LIT:&>' + query_string<EOL><DEDENT><DEDENT>else:<EOL><INDENT>sort_link = request.path<EOL>if query_string:<EOL><INDENT>sort_link += '<STR_LIT:?>' + query_string<EOL><DEDENT><DEDENT>return sort_link<EOL>
Thanks to del_query_parameters and get_querystring, we build the link
with preserving interesting get parameters and removing the others