SortCell Sort a cell array in ascending order.

Description: SortCell sorts the input cell array according to the
dimensions (columns) specified by the user.

Usage: [Y,NDX] = SortCell(X, DIM)

X: the cell array to be sorted.
DIM: (optional) one or more column numbers. Simply an array of one or
more column numbers. The first number is the primary column on
which to sort. Extra column numbers may be supplied if secondary
sorting is required. The default value is 1, if no dimension
array is supplied.

Y: the sorted cell array.
NDX: indices such that Y = X(NDX,:).

Example: Y = SortCell(X, [3 2])

Note that this function has only been tested on mixed cell arrays
containing character strings and numeric values.

Path   Retrieve current version from GitHub | View changelog