Project

General

Profile

$sorttok » History » Version 1

Per Amundsen, 08/10/2015 06:17 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$sorttok(text,C,ncra)*
4
5
Sorts the tokens in text.
6
7
_[[$sorttok]] is case-insensitive, see [[$sorttokcs]] for case-sensitive version._
8
9
*Parameters*
10
11
text - The text to tokenize.
12
C - The "ASCII":http://www.asciitable.com/ value to tokenize by.
13
ncra - n = numeric sort, c = channel nick prefix sort, r = reverse sort, a = alphanumeric sort. (Default is an alphabetic sort)
14
15
*Example*
16
17
<pre>
18
; Sort the tokens alphanumeric
19
//echo -ag $sorttok(e.d.c.b.a,46)
20
21
; Sort the tokens numeric, reversed
22
//echo -ag $sorttok(1.3.5.2.4,46,nr)
23
</pre>