vsudakou
If it's impossible to reorder, you may swap paths of two tabs.
1. Get current path (e.g. path1)
2. Switch to next (prev) tab and get its path (e.g. path2)
3. Set current tab's path to path1
4. Get back to prev tab and set it's path to path2
5. Go again to next tab if needed.
Maybe it's not as beautiful as it could be, but must be enough as a temp. solution