The functional consequences of random vs. ordered species extinctions