Subversion Repositories wimsdev

Rev

Rev 17228 | Blame | Compare with Previous | Last modification | View Log | RSS feed

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