Sets names to a vector and then reorders it so that names are sorted alphabetically.

label_and_order(value, label)

Arguments

value

[vector()]
Values to label and reorder.

label

[character()]
Names to use when labeling and reordering.

Value

Reordered value vector with names.