This setup requests a stack of all items that you have too many of based on quality. Defaults to 256 (normal) - 128 (uncommon) - 64 (rare) - 32 (epic) - 16 (legendary)

Originally shared on the public FactorioPrints / Factorio School archive (factorioprints.com · factorio.school). Authorship preserved from the public catalog.
This setup requests a stack of all items that you have too many of based on quality. Defaults to 256 (normal) - 128 (uncommon) - 64 (rare) - 32 (epic) - 16 (legendary)