Usage: $asntok(TOKEN,N,?)
Will sort and insert needed numbers. For example, $asntok(4.1,46) would return 1.2.3.4 (if you used $asntok(4.1,46,nr) - it would return it in reverse)
alias asntok {
var %x = 1, %tok = $1
while %x <= $gettok($sorttok($1,$2,nr),1,$2) {
var %tok = $iif($istok($1,%x,$2),%tok,$instok(%tok,%x,0,$2))
inc %x
}
return $sorttok(%tok,$2,$iif($3,nr,n))
}