app/importers/file_importers/unwrap_file_importer_options.rb
# Some of these are circular for a first-time run - eg, StudentsImporter creates Homeroom records, and
# EducatorsImporter matches on those.
Some of these are circular for a first-time run - eg, StudentsImporter creates Homeroom records, and
EducatorsImporter matches on those.
Some of these are circular for a first - time run - eg StudentsImporter creates Homeroom records and EducatorsImporter matches on those .
def sort_file_import_classes
    file_import_classes.sort_by do |import_class|
      [
        PRIORITY.fetch(import_class, 100),    
        import_class.to_s                     
      ]
    end
  end
def sort_file_import_classes file_import_classes . sort_by do | import_class | [ PRIORITY . fetch ( import_class , 100 ) , import_class . to_s ] end end
Some of these are circular for a first-time run - eg, StudentsImporter creates Homeroom records, and
EducatorsImporter matches on those.
Some of these are circular for a first - time run - eg StudentsImporter creates Homeroom records and EducatorsImporter matches on those .
# First sort by priority ... # ... then alphabetically.