Option 1: Placing the indirect object pronoun before the verb:
* Les quiero comprar unos guantes a mis sobrinos.
This is the most common and natural way to place the indirect object pronoun in Spanish. It is generally considered more elegant than placing the pronoun after the verb.
Option 2: Placing the indirect object pronoun after the verb (less common):
* Quiero comprar unos guantes a mis sobrinos les.
This placement is less common and can sound a bit awkward or formal. It's generally preferred to use the first option unless there's a specific reason to use this construction.
Important Note:
While the placement of the indirect object pronoun is flexible, the order of the direct object (unos guantes) and the indirect object (a mis sobrinos) is typically fixed: direct object + indirect object.