sorting the attributes for report groups