Ordered results by frequency, output them into a collection of files.