A set has an ordering based on its content, not sequence of insertion. So you can't.
Use a different container (e.g. a vector) and de-duplicate that. A set may assist in that deduplication, provided the vector content has a natural ordering (as any numerical type will have).