setItemOrder

setItemOrder

Arrange CMS items in a specific order.

await collection.setItemOrder([item3.id, item1.id, item2.id])

Params

  • ids: string[] – An array of IDs in the order that you wish to set the items to.

Returns

  • Promise<void>