update tag page and sort function