diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2009-02-24 21:04:58 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2009-02-24 21:04:58 (GMT) |
commit | d24c35f276199a428012749034360a0ab17c00da (patch) | |
tree | bd89a06d093bc6aed00d0c588a506836a2576c5c /doc/lsort.n | |
parent | b51f251bd053d6532d178b3f1b101d5cfd15f610 (diff) | |
download | tcl-d24c35f276199a428012749034360a0ab17c00da.zip tcl-d24c35f276199a428012749034360a0ab17c00da.tar.gz tcl-d24c35f276199a428012749034360a0ab17c00da.tar.bz2 |
General minor documentation improvements.
Diffstat (limited to 'doc/lsort.n')
-rw-r--r-- | doc/lsort.n | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/lsort.n b/doc/lsort.n index f83ace5..568f283 100644 --- a/doc/lsort.n +++ b/doc/lsort.n @@ -7,7 +7,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: lsort.n,v 1.32 2008/10/17 10:22:25 dkf Exp $ +'\" RCS: @(#) $Id: lsort.n,v 1.33 2009/02/24 21:04:58 dkf Exp $ '\" .so man.macros .TH lsort n 8.5 Tcl "Tcl Built-In Commands" @@ -29,12 +29,12 @@ By default ASCII sorting is used with the result returned in increasing order. However, any of the following options may be specified before \fIlist\fR to control the sorting process (unique abbreviations are accepted): -.TP 20 +.TP \fB\-ascii\fR . Use string comparison with Unicode code-point collation order (the name is for backward-compatibility reasons.) This is the default. -.TP 20 +.TP \fB\-dictionary\fR . Use dictionary-style comparison. This is the same as \fB\-ascii\fR @@ -43,15 +43,15 @@ strings contain embedded numbers, the numbers compare as integers, not characters. For example, in \fB\-dictionary\fR mode, \fBbigBoy\fR sorts between \fBbigbang\fR and \fBbigboy\fR, and \fBx10y\fR sorts between \fBx9y\fR and \fBx11y\fR. -.TP 20 +.TP \fB\-integer\fR . Convert list elements to integers and use integer comparison. -.TP 20 +.TP \fB\-real\fR . Convert list elements to floating-point values and use floating comparison. -.TP 20 +.TP \fB\-command\0\fIcommand\fR . Use \fIcommand\fR as a comparison command. @@ -61,23 +61,23 @@ arguments. The script should return an integer less than, equal to, or greater than zero if the first element is to be considered less than, equal to, or greater than the second, respectively. -.TP 20 +.TP \fB\-increasing\fR . Sort the list in increasing order .PQ smallest "items first" . This is the default. -.TP 20 +.TP \fB\-decreasing\fR . Sort the list in decreasing order .PQ largest "items first" . -.TP 20 +.TP \fB\-indices\fR . Return a list of indices into \fIlist\fR in sorted order instead of the values themselves. -.TP 20 +.TP \fB\-index\0\fIindexList\fR . If this option is specified, each of the elements of \fIlist\fR must @@ -120,7 +120,7 @@ returns \fB{{d e m o} 34512} {{b i g} 12345} {{c o d e} 54321}\fR This option is much more efficient than using \fB\-command\fR to achieve the same effect. .RE -.TP 20 +.TP \fB\-stride\0\fIstrideLength\fR . If this option is specified, the list is treated as consisting of @@ -151,13 +151,13 @@ lsort \-stride 2 \-index 1 \-integer {carrot 10 apple 50 banana 25} returns .QW "carrot 10 banana 25 apple 50" . .RE -.TP 20 +.TP \fB\-nocase\fR . Causes comparisons to be handled in a case-insensitive manner. Has no effect if combined with the \fB\-dictionary\fR, \fB\-integer\fR, or \fB\-real\fR options. -.TP 20 +.TP \fB\-unique\fR . If this option is specified, then only the last set of duplicate |