mIRC Home    About    Download    Register    News    Help

Print Thread
#48209 09/09/03 10:38 AM
Joined: Apr 2003
Posts: 210
S
saxon Offline OP
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Apr 2003
Posts: 210
//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....

#48210 09/09/03 11:45 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
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.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#48211 09/09/03 07:55 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Most likely, you can thank mIRC 6.1's "improved" sorting method.

#48212 10/09/03 01:54 PM
Joined: Dec 2002
Posts: 5,411
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,411
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.

#48213 10/09/03 11:00 PM
Joined: Apr 2003
Posts: 210
S
saxon Offline OP
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Apr 2003
Posts: 210
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..


Link Copied to Clipboard