Handles sorting table data based on a column and direction (ASC/DESC).
The table data on which to perform sorting.
An object containing comparison functions for each column and direction.
Options for initial sorting.
Handles sorting table data based on a column and direction (ASC/DESC).