mcSTrowSort — Sort the non-empty cells of a row of a sparse-table dataset
#include <memcom.h> int mcSTrowSort(int dsid, int row_index, int sorting_mode);
mcSTrowSort
sorts, for the sparse-table
dataset identified by dsid
, the non-empty cells
of the row identified by row_index
according to
the sorting_mode
parameter.
dsid (input)
Dataset identifier.
row_index (input)
Index of the row, starting at 1.
sorting_mode (input)
Defines the sorting mode. Valid choices are:
MC_ST_SORT_NAME_ASC
: Sort the
cells by the column name in ascending order.
MC_ST_SORT_NAME_DESC
: Sort
the cells by the column name in descending
order.
MC_ST_SORT_COLUMN_ASC
: Sort
the cells by the column index in ascending
order.
MC_ST_SORT_COLUMN_DESC
: Sort
the cells by the column index in descending
order.