compareModulesById = (chunkGraph, a, b) =>
	compareIds(
		/** @type {ModuleId} */ (chunkGraph.getModuleId(a)),
		/** @type {ModuleId} */ (chunkGraph.getModuleId(b))
	)
@param {ChunkGraph} chunkGraph the chunk graph
@param {Module} a module
@param {Module} b module
@returns {-1|0|1} compare result