mIRC Home    About    Download    Register    News    Help

Print Thread
/hsort or /hsorttok #9782 05/02/03 06:27 AM
Joined: Feb 2003
Posts: 10
T
thereal_flipper Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Feb 2003
Posts: 10
Im looking at making an /hsort command, sytax would be
/hsorttok -adl <table> <totable> <tokenseperator> <token>

the -a would specify acending, and d would specify , l would specify alpha charaters decending

<table> being the table to sort and store in new table <totable>
ordered by the N specified for <token>

so a logical statement would be

/hsorttok -d scores top10 32 1
where the table contents are
<nick>|<wins> <credits> <etc....>

this would return the top10 results based on the N token and store it in the new table

Re: /hsort or /hsorttok #9783 08/02/03 10:58 AM
Joined: Dec 2002
Posts: 20
S
Spola Offline
Ameglian cow
Offline
Ameglian cow
S
Joined: Dec 2002
Posts: 20
/filter has a switch (i believe it's the -t) that does something like that.

I'm sure that with a bit of imagination you could get there wink


you guys are so not L334
Re: /hsort or /hsorttok #9784 08/02/03 01:49 PM
Joined: Dec 2002
Posts: 56
G
Gon_ Offline
Babel fish
Offline
Babel fish
G
Joined: Dec 2002
Posts: 56
I think a /hsort command, that sorts the hash table items, alphabeticaly or numericaly would be great. I have often needed this, and it's better and faster than saving a hashtable to a file and then /loadbuf to a window.

Maybe also:

/hcopy <from table> <to table>
/hrename <old name> <new name>