Text columns sort alphabetically, which is rarely the order a reader needs. A factor is a column with a fixed set of categories in a set order, and ggplot2 and count() follow that order.
forcats sets it. fct_reorder(category, n) orders categories by a number, so bars go from smallest to largest; .desc = TRUE reverses it. fct_infreq(team) orders by how often each value appears. fct_relevel(priority, "low", "medium", "high") puts them in the order you name, for categories with a natural order.
fct_lump_n(station, n = 2) keeps the two most common categories and groups the rest as "Other", which keeps a chart readable. Ties at the cut-off are kept, so check the result.
Order by a number, set a natural order, and group small categories.