allow entering duplicate tags; if a duplicate tag is entered, move it to the end