mIRC Home    About    Download    Register    News    Help

Print Thread
#90082 11/07/04 07:29 PM
Joined: Jul 2004
Posts: 1
Z
zzzzzz Offline OP
Mostly harmless
OP Offline
Mostly harmless
Z
Joined: Jul 2004
Posts: 1
for example
nick ^--T----- ^-A------ ^[D]^^^^^ ^P-------
these 4 nicks..
by right should be in the order of ^--T----- ^-A------ ^P------- and lastly ^[D]^^^^^
but now the order is ^--T----- ^-A------ ^[D]^^^^^ than ^P-------
..
the order of character is mess up..
please fix it...
thank you

#90083 11/07/04 07:34 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Why should [ come after P? From an encoding point of view [ comes before p and P.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#90084 11/07/04 08:55 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Actually [ comes before p and after P


-KingTomato
#90085 11/07/04 11:16 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
In my numerical system 91 comes before 80.

I'll let myself out...


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#90086 12/07/04 08:17 AM
Joined: Aug 2003
Posts: 29
E
Ameglian cow
Offline
Ameglian cow
E
Joined: Aug 2003
Posts: 29
I'd imagine that characters are being processed as lower case, which would make p = ASCII 80, [ = ASCII 91, and P = ASCII 112, thus resulting in the sort error.

#90087 12/07/04 04:30 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
//echo -a $asc(P) $asc([) $asc(p)
80 91 112

Unless you are referring to a different number system, my previous statement was correct.


-KingTomato
#90088 12/07/04 04:47 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
I was joking.


Spelling mistakes, grammatical errors, and stupid comments are intentional.

Link Copied to Clipboard