CodeCop Rule AA0021
Variable declarations should be ordered by type.
Variable declarations should be ordered by type. In general, object and complex variable types are listed first followed by simple variables.
Object and complex variable types must be listed first, and then simple variables. The order is: Record, Report, Codeunit, XmlPort, Page, Query, Notification, BigText, DateFormula, RecordId, RecordRef, FieldRef, and FilterPageBuilder. The rest of the variables are not sorted.