mIRC Homepage

$sorttok

Posted By: saxon

$sorttok - 09/09/03 10:38 AM

//echo -a $sorttok(1-1 10-1 5-1 20-1,32,n)

6.03: 1-1 5-1 10-1 20-1
6.1: 1-1 10-1 20-1 5-1

You can argue that they are not numbers, but 6.03 and all previous mIRC's used to sort that way, if i wanted alphabetical i wouldnt specify n.. I don't see a reason to remove the functionality of being able to apply numerical sorting to tokens like this... all it does is break scripts....
Posted By: qwerty

Re: $sorttok - 09/09/03 11:45 AM

I agree, I don't see why this functionality was removed (could it be the compiler switch?), especially since /filter still works the old way. Speaking of /filter, you might find this workaround useful, although not pretty.
Posted By: codemastr

Re: $sorttok - 09/09/03 07:55 PM

Most likely, you can thank mIRC 6.1's "improved" sorting method.
Posted By: Khaled

Re: $sorttok - 10/09/03 01:54 PM

Most subtle changes like this are only made when people ask for them. In this case, the request was to sort non-text items correctly even in a list of numeric tokens.

Unfortunately, in your example, the tokens you've specified are actually non-numeric.

I will add a new sort method in the next version of $sorttok(), so that 'n' will work as in 6.03.
Posted By: saxon

Re: $sorttok - 10/09/03 11:00 PM

Quote:
I will add a new sort method in the next version of $sorttok(), so that 'n' will work as in 6.03.


Great, thanks..
© 2020 mIRC Discussion Forums