Let the tasks be combined and/or sorted before each pipeline stage.
Add a test for sorting and combining the inputs of a job.
Merge pull request #374 from pooya/shayan/upstream_pipeline_sort

Shayan/upstream pipeline sort