code: def sort_single_reference(ref_entry):
      
  
      # yapf: disable
      _keyorder = [
          # Schema stuff
          # This function gets called on the schema 'entry', too
          'schema_type', 'schema_version',
  
          # Type of the entry
          'type',
  
          # Actual publication info
          'authors', 'title', 'booktitle', 'series', 'editors', 'journal',
          'institution', 'volume', 'number', 'page', 'year', 'note', 'publisher',
          'address', 'isbn', 'doi'
      ]
      # yapf: enable
  
      sorted_entry = sorted(ref_entry.items(), key=lambda x: _keyorder.index(x[0]))
  
      if _use_odict:
          return OrderedDict(sorted_entry)
      else:
          return dict(sorted_entry)
docs: Sorts a dictionary containing data for a single reference into a standard order