# Reorder levels of subtaxa by parent taxa

## Usage

reorder_taxa(taxonomy, ranks = qiimer::taxonomic_ranks)

## Arguments

taxonomy
the taxonomy data frame, with columns for each [kpcofgs] rank

## Value

the taxonomy with each column converted to a factor, and the levels reordered

## Description

Reorders the levels of each taxonomic rank to be arranged by the rank above it, so that e.g. each class level is ordered by the phylum it belongs to, and so on.