home *** CD-ROM | disk | FTP | other *** search
-
-
-
- llllssssoooorrrrtttt((((nnnn)))) TTTTccccllll ((((7777....0000)))) llllssssoooorrrrtttt((((nnnn))))
-
-
-
- _________________________________________________________________
-
- NNNNAAAAMMMMEEEE
- lsort - Sort the elements of a list
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- llllssssoooorrrrtttt ?_s_w_i_t_c_h_e_s? _l_i_s_t
- _________________________________________________________________
-
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- This command sorts the elements of _l_i_s_t, returning a new
- list in sorted order. By default ASCII sorting is used with
- the result returned in increasing order. However, any of |
- the following switches may be specified before _l_i_s_t to |
- control the sorting process (unique abbreviations are |
- accepted): |
-
- ----aaaasssscccciiiiiiii ||
- Use string comparison with ASCII |
- collation order. This is the default. |
-
- ----iiiinnnntttteeeeggggeeeerrrr ||
- Convert list elements to integers and |
- use integer comparison. |
-
- ----rrrreeeeaaaallll ||
- Convert list elements to floating-point |
- values and use floating comparison. |
-
- ----ccccoooommmmmmmmaaaannnndddd _c_o_m_m_a_n_d ||
- Use _c_o_m_m_a_n_d as a comparison command. To |
- compare two elements, evaluate a Tcl |
- script consisting of _c_o_m_m_a_n_d with the |
- two elements appended as additional |
- 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. |
-
- ----iiiinnnnccccrrrreeeeaaaassssiiiinnnngggg ||
- Sort the list in increasing order |
- (``smallest'' items first). This is the |
- default. |
-
- ----ddddeeeeccccrrrreeeeaaaassssiiiinnnngggg ||
- Sort the list in decreasing order |
- (``largest'' items first).
-
-
- KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
-
-
-
- PPPPaaaaggggeeee 1111 ((((pppprrrriiiinnnntttteeeedddd 7777////11117777////99995555))))
-
-
-
-
-
-
- llllssssoooorrrrtttt((((nnnn)))) TTTTccccllll ((((7777....0000)))) llllssssoooorrrrtttt((((nnnn))))
-
-
-
- element, list, order, sort
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 2 (printed 7/17/95)
-
-
-
-