Sort by number of dependent tasks