Sort task names in order