% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/verbs_basic.R
\name{arrange}
\alias{arrange}
\title{Sort rows by column values}
\usage{
arrange(.data, ...)
}
\arguments{
\item{.data}{A \code{vectra_node} object.}

\item{...}{Column names (unquoted). Wrap in \code{\link[=desc]{desc()}} for descending order.}
}
\value{
A new \code{vectra_node} with sorted rows.
}
\description{
Sort rows by column values
}
\details{
Uses an external merge sort with a 1 GB memory budget. When data exceeds
this limit, sorted runs are spilled to temporary \code{.vtr} files and merged
via a k-way min-heap. NAs sort last in ascending order.

This is a materializing operation.
}
\examples{
f <- tempfile(fileext = ".vtr")
write_vtr(mtcars, f)
tbl(f) |> arrange(desc(mpg)) |> collect() |> head()
unlink(f)

}
