Rev 20 | Rev 4349 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 20 | Rev 4158 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | !goto proc |
2 | !goto proc |
3 | !endif |
3 | !endif |
4 | slib_title=Sort data according to a column |
- | |
5 | slib_parms=3\ |
4 | |
6 | 1,the number of column for sort key\ |
- | |
7 | ,option words (accepts <tt>nocase numeric reverse</tt>)\ |
- | |
8 | ,2-dimensional data arranged in rows and columns |
- | |
9 | slib_author=Gang Xiao |
5 | slib_author=Gang Xiao |
10 | slib_out=the sorted data |
- | |
11 | slib_example= 3,nocase, 3,5,oui;caen, arles,nice;paris,nice,caen\ |
- | |
12 | 2,numeric, 3,5,oui;caen, 6,non;paris,1,oui |
- | |
- | 6 | ||
13 | !exit |
7 | !exit |
14 | 8 | ||
15 | :proc |
9 | :proc |
16 | slib_ltest=!linecnt $wims_read_parm |
10 | slib_ltest=!linecnt $wims_read_parm |
17 | !if $slib_ltest>1 |
11 | !if $slib_ltest>1 |