mIRC Home    About    Download    Register    News    Help

Print Thread
#74320 07/03/04 01:12 PM
Joined: Sep 2003
Posts: 58
S
stimpy Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Sep 2003
Posts: 58
Hello everybody,

I have this script were a listbox is filled with data from a txt file.
I'm using this script for a while now ad the listbox is pretty full.
Now i want it to sort out the data on alphabetical order.
I've tried a view things with $sorttok but it doesn't seem to work.
the data is al in text format.

Could someone help me on this one?

The txt file is called namelist.txt

tnx stimpy


***************************
To chat, or not to chat.
That's the question
#74321 07/03/04 01:43 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Check out /filter and its -t switch.
e.g.
//filter -cfft 1 32 namelist.txt namelist.txt *

#74322 07/03/04 02:43 PM
Joined: Dec 2002
Posts: 230
G
Fjord artisan
Offline
Fjord artisan
G
Joined: Dec 2002
Posts: 230
...or just use the sort property on the listbox

#74323 07/03/04 02:50 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Using the sort style of the listbox means that you can't re-sort it or alter the order manually (like with Up and Down buttons) later. /Filter allows this without issue.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#74324 07/03/04 03:53 PM
Joined: Dec 2002
Posts: 230
G
Fjord artisan
Offline
Fjord artisan
G
Joined: Dec 2002
Posts: 230
sure, he didn't tell us that he intends to do something like that though, so...


Link Copied to Clipboard