% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sorting_utils.R
\name{calculate_category_order}
\alias{calculate_category_order}
\title{Calculate ordering based on a specific category value}
\usage{
calculate_category_order(data, category_value, descend = FALSE)
}
\arguments{
\item{data}{Dataset with .category and .count columns}

\item{category_value}{The category value to sort by (e.g., "A bit")}

\item{descend}{Logical indicating if sorting should be descending}
}
\value{
Numeric vector of ordering values
}
\description{
Calculate ordering based on a specific category value
}
\keyword{internal}
