Every time I click on a certain tab inside IntelliJ IDEA it reorders all the tabs. I find this to be super-annoying as I learn the order of my tabs, and then it switches.
This behavior is defined by the Java Look&Feel, you can either change Look&Feel to the one that doesn't reorder tab rows or enable the option to Show tabs in single row (or set the tabs to be displayed on the right/left instead of the top).