Thread:Skin talk:Chameleon/Dropdown menu moves to end of NavMenu

Hi, multiple sub-items in MediaWiki:Sidebar are transformed to a dropdown menu, but this dropdown menu appears at the end of the NavMenu. We had a look at the code of NavMenu but weren't able to figure out what is going on...

The sidebar looks like this:
 * Wat doet Wikibase Solutions|Wikibase Solutions
 * Wat doet Wikibase Solutions|Wikibase Solutions


 * Doelgroepen
 * Doelgroepenoverzicht#Gebruikers|Gebruikers
 * Doelgroepenoverzicht#Beheerders|Beheerders
 * Doelgroepenoverzicht#Managers|Managers
 * Doelgroepenoverzicht#IT-adviseurs|IT-adviseurs
 * Doelgroepenoverzicht#Vormgevers|Vormgevers


 * Blog|Blog
 * Blog|Blog


 * Contact|Contact
 * Contact|Contact

The order in the NavMenu is:
 * Tools
 * recentchanges-url|recentchanges
 * categories-url|categories
 * Help|Help
 * Special:SpecialPages|Special pages
 * Wikibase Solutions
 * Blog
 * Contact
 * Doelgroepen
 * Tools