'VSTO Outlook Add-in Move folders up and down

i have an outlook add-in in which a folder is selected.Now what i want is, i want to move the folder up and down using C#. Is there someone that can help me in this case. You help is greatly appreciated.



Solution 1:[1]

You will need to set the PR_SORT_POSITION Extended MAPI property using MAPIFolder.PropertyAccessor.SetProperty. You can see that property (if the particular folder was manually reordered) in OutlookSpy (I am its author - click IMAPIFolder button).
See https://blogs.msdn.microsoft.com/stephen_griffin/2013/11/08/mapi-provider-sorting/ for more details.

Solution 2:[2]

To my knowledge you can not. Non-default folders are sorted alphabetically.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Bender Bending