Subversion Repositories wimsdev

Rev

Rev 11292 | Rev 17228 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11292 Rev 16291
Line 1... Line 1...
1
!! +exec+ +var+ +string+
1
!! +exec+ +var+ +string+
-
 
2
!goto end
2
tit:sort
3
tit:sort
3
type:$type_both
4
type:$type_both
4
syntax:!sort [nocase] [reverse] [numeric] ``type'' [of] ``string''
5
syntax:!sort [nocase] [reverse] [numeric] ``type'' [of] ``string''
5
mean:Sort ``string''. The ``type'' of the sort may be char, word, list or line. <br/>\
6
mean:Sort ``string''. The ``type'' of the sort may be ``char'', ``word'', ``list'' or ``line''. <br/>\
6
  After this command is executed, the sort order is stored in the variable\
7
  After this command is executed, the sort order is stored in the variable\
7
  ``wims_sort_order'' (as a list). This can therefore be used\
8
  ``wims_sort_order'' (as a list). This can therefore be used\
8
  for relational sorting, in conjunction with commands\
9
  for relational sorting, in conjunction with commands\
9
  $(ref1)cmdlist_item_&+cmd_choose=all$(ref2)cmdlist_item_">!item</a>,\
10
  $(ref1)cmdlist_item_&+cmd_choose=all$(ref2)cmdlist_item_">!item</a>,\
10
  $(ref1)cmdlist_line_&+cmd_choose=all$(ref2)cmdlist_line_">!line</a>,\
11
  $(ref1)cmdlist_line_&+cmd_choose=all$(ref2)cmdlist_line_">!line</a>,\
11
  $(ref1)cmdlist_word_&+cmd_choose=all$(ref2)cmdlist_word_">!word</a> or\
12
  $(ref1)cmdlist_word_&+cmd_choose=all$(ref2)cmdlist_word_">!word</a> or\
12
  $(ref1)cmdlist_char_&+cmd_choose=all$(ref2)cmdlist_char_">!char</a>.
13
  $(ref1)cmdlist_char_&+cmd_choose=all$(ref2)cmdlist_char_">!char</a>.
-
 
14
sample:see below
-
 
15
:end
-
 
16
<tr>
-
 
17
  <td><code>!sort list 0,4,2</code></td>
-
 
18
  <td>
-
 
19
    !sort list 0,4,2
-
 
20
  </td>
-
 
21
</tr><tr>
-
 
22
<td><code>!sort reverse list 0,4,2</code></td>
-
 
23
  <td>
-
 
24
    !sort reverse list 0,4,2
-
 
25
  </td>
-
 
26
</tr>