Dataset sortby: Difference between revisions
Jump to navigation
Jump to search
imported>Jeremy (New page: ===PURPOSE=== Sort a DataSet by given field, dim, and set. ===Synopsis=== :[B,index] = sortby(A,field,dim,set,direction) ===Description=== Allows sorting of a DataSet on any field associ...) |
imported>Jeremy |
||
Line 22: | Line 22: | ||
===See Also=== | ===See Also=== | ||
[[dataset_sortrows]] | [[dataset_sortcols]], [[dataset_sortrows]] |
Latest revision as of 10:56, 13 October 2008
PURPOSE
Sort a DataSet by given field, dim, and set.
Synopsis
- [B,index] = sortby(A,field,dim,set,direction)
Description
Allows sorting of a DataSet on any field associated with the data.
Inputs
- field = name of the field to sort.
- 'axisscale'
- 'class'
- 'classid'
- 'label'
- dim = dimension (mode) of field to use.
- set = set (column) to use.
- direction = direction to sort, 'ascend' or 'descend'.
Examples
[B,index] = sortby(A,'labels',1,2,'descend')