sort tags by position on page