Sort dEntity attributes by groups, then alphabetically. Add some missing dEntity attributes.