I did what you say, but still the same sort..
function convertValues4Input($mValues, $sUseLKey = 'LKey')
{
$aValues = array();
if (is_array($mValues)) {
foreach ($mValues as $sKey)
$aValues[$sKey] = _t('_FieldValues_' . $sKey);
} elseif (is_string($mValues) and !empty($mValues) and substr($mValues, 0, 2) == $this->sLinkPref) {
$sKey = substr($mValues, 2);
if (isset($GLOBALS['aPreValues'][$sKey]) ) {
$aPValues = $GLOBALS['aPreValues'][$sKey];
foreach ($aPValues as $sKey => $aPValue) {
if (!isset($aPValue[$sUseLKey]))
$sUseLKey = 'LKey';
$aValues[$sKey] = _t($aPValue[$sUseLKey]);
}
}
}
//echoDbg($aValues);
return $aValues;
if (is_string($mValues) && '#!Country' == $mValues)
asort($aValues);
}