I have a similar habit with tabs in my browser. I line up the tabs in the same order so my keyboard shortcuts work in the same manner as how you are using them in the desktop bar. I could see where attempting to close the wrong browser window would get annoying. What OS are you running? Can you drag-n-drop your apps in the bar to reorder them, or do you have to open the apps in the correct order?