interfaceOrderData{ContentTypeOrder:{StringValue: string}[];UniqueContentTypeOrder?:{StringValue: string}[];}constfolder=sp.web.lists.getById("{list id guid}").rootFolder;// here you need to see if there are unique content type orders already or just the defaultconstexistingOrders=awaitfolder.select("ContentTypeOrder","UniqueContentTypeOrder").get<OrderData>();constactiveOrder=existingOrders.UniqueContentTypeOrder?existingOrders.UniqueContentTypeOrder : existingOrders.ContentTypeOrder;// manipulate the order here however you want (I am just reversing the array as an example)constnewOrder=activeOrder.reverse();// update the content type order thusly:awaitfolder.update({UniqueContentTypeOrder:{__metadata:{type:"Collection(SP.ContentTypeId)"},results: newOrder,},});