Here's a method that will work for Libraries:
Close all explorer windows, and backup the registry (recommended).
Choose a node group to swap OneDrive with and Google the CLSID. I chose Libraries.
HKEY_CLASSES_ROOT\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5} (for 64 bit)
Make a record of the SortOrderIndex value (mine was 54)
Also make a record of the SortOrderIndex value for the OneDrive CLSID (mine was 42)
HKEY_CLASSES_ROOT\CLSID\{8E74D236-7F35-4720-B138-1FED0B85EA75}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{8E74D236-7F35-4720-B138-1FED0B85EA75} (for 64 bit)
You may be required to modify administrative privileges on Libraries by right clicking the LH node and modifying the permissions dialogue.
On the RH pane change the Libraries SortOrderIndex value to 42 (dec) only, do not swap the SortOrderIndex values (it will do this for you and you may not need extra permissions for this). Open an explorer window to view the changes.
"This PC" {20D04FE0-3AEA-1069-A2D8-08002B30309D} did not have a SortOrderIndex value on this machine, it may work if given one.
I will consider doing a Batch/Powershell script for this.
More CLSIDs can be found here and add folders to a library here.