diff options
author | Steve Bennett <steveb@workware.net.au> | 2013-11-05 15:17:01 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2013-11-05 15:17:01 +1000 |
commit | 91960fb0e584579c5dc25376b5bfba8c6eafa4a3 (patch) | |
tree | 79b553ac27a549102b1913577e55b62c3feb3569 | |
parent | 8c75a25b344950f1e1423ba2824eb0b9e580ad8a (diff) | |
download | jimtcl-91960fb0e584579c5dc25376b5bfba8c6eafa4a3.zip jimtcl-91960fb0e584579c5dc25376b5bfba8c6eafa4a3.tar.gz jimtcl-91960fb0e584579c5dc25376b5bfba8c6eafa4a3.tar.bz2 |
Update lsort option documentation
Document -nocase and remove duplicate -index
Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r-- | jim_tcl.txt | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt index a7c3249..59fcb23 100644 --- a/jim_tcl.txt +++ b/jim_tcl.txt @@ -3132,10 +3132,12 @@ the list are to be matched against pattern and must have one of the values below lsort ~~~~~ -+*lsort* ?*-index* 'listindex'? ?*-integer*|*-command* 'cmdname'? ?*-decreasing*|*-increasing*? 'list'+ ++*lsort* ?*-index* 'listindex'? ?*-nocase*!*-integer*|*-command* 'cmdname'? ?*-decreasing*|*-increasing*? 'list'+ Sort the elements of +'list'+, returning a new list in sorted order. -By default, ASCII sorting is used, with the result in increasing order. +By default, ASCII (or UTF-8) sorting is used, with the result in increasing order. + +If +-nocase+ is specified, comparisons are case-insenstive. If +-integer+ is specified, numeric sorting is used. @@ -3152,10 +3154,6 @@ If +-index 'listindex'+ is specified, each element of the list is treated as a l the given index is extracted from the list for comparison. The list index may be any valid list index, such as +1+, +end+ or +end-2+. -If +-index 'listindex'+ is specified, each element of the list is treated as a list and -the given index is extracted from the list for comparison. The list index may -be any valid list index, such as +1+, +end+ or +end-2+. - open ~~~~ +*open* 'fileName ?access?'+ |