function fix( fixer ) {
		var requireDeclarations;
		var replacingText;
		var startRange;
		var endRange;
		var source;
		var elem;
		var txt;
		var i;

		replacingText = '';
		requireDeclarations = [];
		source = context.getSourceCode();

		// Get the text and rank for the require statements:
		for ( i = 0; i < requires.length; i++ ) {
			elem = requires[ i ].node.parent.parent;
			txt = source.getText( elem );
			if ( i === 0 ) {
				startRange = elem.range[ 0 ] - elem.loc.start.column;
			}
			endRange = elem.range[ 1 ];
			requireDeclarations.push({
				'text': txt,
				'rank': requires[i].rank
			});
		}

		// Sort the require statements:
		requireDeclarations.sort( sortRequires );

		// Build the replacement text:
		for ( i = 0; i < requireDeclarations.length; i++ ) {
			txt = requireDeclarations[ i ].text;
			if ( !txt.startsWith( 'var' ) ) {
				txt = 'var '+txt;
			}
			if ( !txt.endsWith( ';' ) ) {
				txt += ';';
			}
			replacingText += txt;
			if ( i < requireDeclarations.length-1 ) {
				replacingText += '\n';
			}
		}
		return fixer.replaceTextRange( [ startRange, endRange ], replacingText );// eslint-disable-line max-len
	}
Fixes the lint error by reordering the require statements.

@private
@param {Function} fixer - ESLint fixer
@returns {(Object|Null)} fix or null