alifestd_topological_sort

alifestd_topological_sort(phylogeny_df: DataFrame, mutate: bool = False) DataFrame

Sort rows so all organisms follow members of their ancestor_list.

Input dataframe is not mutated by this operation unless mutate set True. If mutate set True, operation does not occur in place; still use return value to get transformed phylogeny dataframe.