Project

General

Profile

Actions

$sorttok » History » Revision 1

Revision 1/2 | Next »
Per Amundsen, 08/10/2015 06:17 AM


Added in 1.9.0

$sorttok(text,C,ncra)

Sorts the tokens in text.

$sorttok is case-insensitive, see $sorttokcs for case-sensitive version.

Parameters

text - The text to tokenize.
C - The ASCII value to tokenize by.
ncra - n = numeric sort, c = channel nick prefix sort, r = reverse sort, a = alphanumeric sort. (Default is an alphabetic sort)

Example

; Sort the tokens alphanumeric
//echo -ag $sorttok(e.d.c.b.a,46)

; Sort the tokens numeric, reversed
//echo -ag $sorttok(1.3.5.2.4,46,nr)

Updated by Per Amundsen over 8 years ago · 1 revisions

Also available in: PDF HTML TXT