Index: trunk/core/kernel/db/dblist.php =================================================================== diff -u -N -r2600 -r2640 --- trunk/core/kernel/db/dblist.php (.../dblist.php) (revision 2600) +++ trunk/core/kernel/db/dblist.php (.../dblist.php) (revision 2640) @@ -465,7 +465,12 @@ $lang = $this->Application->GetVar('m_lang'); $field = 'l'.$lang.'_'.$field; } - + + if( !isset($this->Fields[$field]) ) + { + trigger_error('Incorrect sorting defined (field = '.$field.'; direction = '.$direction.') in config for prefix '.$this->Prefix.'', E_USER_WARNING); + } + $this->OrderFields[] = Array($field, $direction); }