sorting of workflows