Dsort [ -k key-flags ] [ -T directory ] key-field-list [ input-file.. ]
Dsort sorts a D-file with the given key-field-list. It is a list of:
field-name[:key-flags]
Key-flags here is a string of following characters (subset of flags of UNIX sort) which gives the key attributes of the field.
The first entry of the key-field-list becomes the first sort key, the second entry becomes the second key, and so on. When all key fields are equal, input sequence is kept (i.e., input record sequence in ascending order is assumed to be the last sort key).
Sort by "count" field value (numeric) by descending order. This is often used after Dfreq command.
Dsort count:nr
Same result by
Dsort -k rn count
Sort by "word"(no case) and "page" (numeric).
Dsort word:f,page:n
See the manual of D_msg.
MIYAZAWA Akira