Disable automatic menubar icon sorting in Mavericks?
Solution 1:
There are two types of menubar items in OS X. The classical one of type NSMenuExtra which is primarily used by Apple's own stuff like the clock, AirPort, TimeMachine, VPN and keychain, etc. These are not officially available for third party developers. The other type is an NSStatusItem which is available for everyone and almost all apps that provide a menu bar item use this type.
Historically only NSMenuExtras could be sorted by ⌘ (command) dragging them and NSStatusItems were displayed in launch order from right to left. Since Mavericks Apple allow all items to be reordered by command-dragging them.
The chosen order should be persistent across logins. Some items like location services or screen synchronization will only show up when needed so they may change your sort order temporarily. The order is the same for all menu bars if you're using multiple screens.
Solution 2:
Try Bartender. This lets you rearrange all your menu bar items and will ensure their position remains at all times whilst the app is open. This will also ensure that previously saved menu bar items return to their correct position after being closed and reopened. Finally, Bartender fixes a number of positioning bugs that seem to occur with some menu bar items since Bartender 'controls' the position of all menu bar items regardless of the position that they 'want' to be (or OS X wants them to be).