Index: trunk/kernel/include/customfield.php =================================================================== diff -u -r979 -r1346 --- trunk/kernel/include/customfield.php (.../customfield.php) (revision 979) +++ trunk/kernel/include/customfield.php (.../customfield.php) (revision 1346) @@ -82,7 +82,7 @@ function LoadFields() { $this->Clear(); - $sql = "SELECT * FROM ".$this->SourceTable." WHERE Type=".$this->Type; + $sql = "SELECT * FROM ".$this->SourceTable." WHERE Type=".$this->Type." ORDER BY DisplayOrder DESC, CustomFieldId ASC"; if($this->debuglevel > 1) echo $sql."
\n"; $rs = $this->adodbConnection->Execute($sql);