I have a kiba job that takes a CSV file (with Kiba::Common::Sources::CSV
), enrich its data, merge some rows (with the ChainableAggregateDestination
destination described here) and saves it to another CSV file (with Kiba::Common::Destinations::CSV
).
Now, I want to sort the rows differently (based on the first column) in my destination CSV. I can't find a way to write a transform that does this. I could use post_process
to reopen the destination CSV, sort it and rewrite it but I guess there is a cleaner way...
Can someone point me in the right direction?