by 180 » Sat Mar 20, 2010 1:38 pm
I tried that but the Keys are programmed to sort in prof.inc.php and I thnk it overrides any changes I make in Predefined Lists...any other ideas?
$aPreValues['Country'] = sortArrByLang( $aPreValues['Country'] );
function sortArrByLang( $aArr ) {
if( !function_exists( '_t' ) )
return $aArr;
$aSortArr = array();
foreach( $aArr as $sKey => $aValue )
$aSortArr[$sKey] = _t( $aValue['LKey'] );
asort( $aSortArr );
$aNewArr = array();
foreach( $aSortArr as $sKey => $sVal )
$aNewArr[$sKey] = $aArr[$sKey];
return $aNewArr;
}