In my SharePoint-hosted app, I use javascript to apply a content type called "Order" to a list in my app.
When users click "new item" to upload a document, I want that document to derive from my new content type.
Is it possible to programmatically change the content type order to make this "Order" content type the default one? This can of course be done in the GUI, but I need to do it via script.