I'm working through beams word count examples (in python). I am able to run the example on DataflowRunner and receive an output.
The output files currently look like:
itself: 16
grey: 1
senses: 4
repair: 1
me: 228
Is there anyway to sort a PCollection so that my output files are sorted in descending order based on word frequency?
In the case that there is no way to do this, what is the standard workflow to find the most frequently occurring words? Would this be handled by a separate process after beam reduces the data down to word counts?