Flush sorting collections when a barcode within a tile has completed to avoid running out of memory