def _compile_defaults(self, files):
        if not isinstance(files, list):
            files = [files]

        content = {}
        for f in files:
            try:
                file_path = os.path.join(self.content_path, f)
                with open(file_path, 'r') as fh:
                    if file_path.endswith('.json'):
                        file_content = json.load(fh)
                    elif file_path.endswith('.yaml'):
                        file_content = yaml.safe_load(fh.read())
                    else:
                        logger.info('Skipping content file due to unrecognized file format %s' % file_path)
                        file_content = {}
            except:
                logger.error('Error reading content file %s' % file_path)
            content.update(file_content)    
        return content
:note: the sort key is a style consideration and so must be provided by the style;
dataset/ETHPy150Open glennyonemitsu/MarkupHiveSDK/sdklib/wsgi.py/DynamicDispatcher._compile_defaults--crossover with--dataset/ETHPy150Open dschwilk/bibstuff/bibstuff/bibstyles/shared.py/CitationManager.sortkey