Preserve order when filtering and clearing filters