Skip to contents

Legacy whole-frame sort kept for direct callers (blockr.dm) during the transition to table_page(), which sorts via a cached order index instead. Same semantics: asc / desc put NA last, na puts NA first.

Usage

apply_table_sort(data, sort_col, sort_dir)

Arguments

data

A data frame.

sort_col

Column name to sort by.

sort_dir

"asc", "desc", "na" or "none".

Value

The sorted data frame.