Species sorting is a mechanism in the metacommunity framework of ecology whereby species abundances can be tied to the abundance of available resources at a location in the environment (environmental filtering) and the ability of a species to take advantage of a particular habitat.
References
Species sorting Wikipedia(Text) CC BY-SA