Updates an array of layer IDs to include a new ID at a specific location.
The existing array of IDs.
The ID to insert.
Optional
(Optional) Specific index to insert at.
(Optional) 'top' (end of array) or 'bottom' (start of array).
A new array with the order updated.
Updates an array of layer IDs to include a new ID at a specific location.