When you close a pinned application in Windows 7 taskbar, the icon will remain at its place. Leading to a taskbar that contains closed apps, opened apps, closed apps…:
I would like to group the closed application to the left, like this:
Of course I can do this manually. But I would like to automate this behavior.