You may have encountered a situation in which Mac changes the order of desktops based on some events like alerts on a program or a web page in browser.
How could I disable this logical change?
Note: I'm using El Capitan, but I had this problem since Mavericks.