furanku

NMRWish Command List

gdbSort

Sort a Database Table



Command-Line Argument List

Sort the contents of a table:
 gdbSort [<|>]varHandle1 ...
Options:
 -proc tclSortProc   TCL sort evaluation procedure.
 -abs                Sort by Absolute Value.
Notes:
 1. Append a '>' prefix to the variable to sort
    that variable in ascending order.
 2. Append a '<' prefix to the variable to sort
    that variable in descending order.
 3. For custom sorting via the -proc option
    the TCL procedure should return -1, 0, or 1
    when two entries are compared:

      proc sortProc {vList1 vList2 dList} ... 

 Where:
    vList1 is a TCL list of values from entry 1;
    vList2 is a TCL list of values from entry 2;
    dList  is a TCL list specifying the sort
           directions as 1 or -1.