remove dup items in ignore list and optimize order