Filtering for trait ecosystem equal chains