When using virtual desktop managers (like goScreen) and switching desktops, the windows of the desktop you are leaving are hidden, and when you switch back they are shown again. But this makes the order of the taskbar buttons undefined/random after each virtual desktop switch.
Remember the order of the window taskbar buttons for not just the active, but also hidden windows, so that when a hidden window is shown again it's placed at the same position as before it was hidden, and not last.
You can use this simple AutoHotkey script to test what hiding a window and showing does to the taskbar order:
#a:: wid := WinExist("A") WinHide ahk_id %wid% sleep 2000 WinShow ahk_id %wid% returnPut this code in a file called "test.ahk", run it and use Win+A to hide and show the active window.
Customer support service by UserEcho