Let the tasks be combined and/or sorted before each pipeline stage.
Merge pull request #13 from pooya/shayan/pipeline_sort

Let the tasks be combined and/or sorted before each pipeline stage.