output order of tasks based on importance