if (descriptor.desiredPos) {
   // insert in the desired position here not in the icon logic
}

target.appendChild(container);