Language Order
The languages are output in the order that they appear in the YAMS Module "Language Settings" tab.
It is possible to change the order of the languages via the YAMS module interface, but since I haven’t built anything into YAMS specifically to help you do this easily (an oversight!), it involves playing a little game with deactivating and reactivating languages: If you deactivate and reactivate a non-default language it gets placed last in the list. To change the position of the default language you first have to switch the default to a different language, then deactivate and reactivate it, and then switch it back. This should provide enough flexibility for you to be able to organise the languages as you wish.
An alternative approach which is probably far simpler in this case is to edit the YAMS config file directly ([tt]assets/modules/yams/yams.config.inc.php[/tt]). I don’t normally recommend editing it, because you can quite easily break YAMS by doing so, but in this case it should be okay. At the top of the file you should see something like
// The ids of the active languages
$this->itsActiveLangIds = array(
'fr'
, 'de'
, 'en'
);
You just need to change the order of the language ids in this array:
// The ids of the active languages
$this->itsActiveLangIds = array(
'de'
, 'en'
, 'fr'
);
Missing list start and end
My mistake. The [tt]@CODE[/tt] needs to be written in upper-case, not in lower case as in my earlier post. (Also note that your closing tag is not closed. Needs to be [tt]</ul>[/tt] not [tt]<ul>[/tt].)