% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sorting_utils.R
\name{validate_sort_category}
\alias{validate_sort_category}
\title{Validate that category-based sort references categories present in data}
\usage{
validate_sort_category(sort_by, data, call = rlang::caller_env())
}
\arguments{
\item{sort_by}{Character vector of category names to sort by.}

\item{data}{Data frame containing a \code{.category} column.}

\item{call}{Calling environment for error reporting.}
}
\value{
\code{TRUE} invisibly if valid.
}
\description{
Fails fast with an informative error when \code{sort_by} names one or more
categories that do not exist in the \code{.category} column of \code{data}.
}
\keyword{internal}
