% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/desc_utils.R
\name{reorder_total_column}
\alias{reorder_total_column}
\title{Reorder columns to position total column}
\usage{
reorder_total_column(result, total, total_label)
}
\arguments{
\item{result}{Data.table with columns to reorder.}

\item{total}{Logical or character: \code{TRUE}/"first" (total first), "last" (total last).}

\item{total_label}{Character string name of the total column.}
}
\value{
Modified data.table with reordered columns.
}
\description{
Rearranges data.table columns to place the total column in the specified
position (first, last, or default). Ensures proper ordering of Variable,
Group, total, group columns, and \emph{p}-value.
}
\keyword{internal}
