mIRC Home    About    Download    Register    News    Help

Print Thread
#259896 09/02/17 03:52 AM
Joined: Jul 2006
Posts: 4,150
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
If the help file documents the usage of the -a switch when used with an alias of our own, it does not describe what operations are done on the file if we don't pass our own alias, what kind of sort is made?


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #259899 09/02/17 11:39 AM
Joined: Dec 2002
Posts: 5,421
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,421
The /filter command performs no sorting itself if none of the sort options are specified. However, if you are sorting into an item, such as a listbox or window, that has its own sort settings, then it may sort them itself. You will need to try it out to see how these features interact.

Khaled #259901 09/02/17 12:45 PM
Joined: Jul 2006
Posts: 4,150
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
Thanks for the comment.
Quote:
such as a listbox or window, that has its own sort settings
Which 'own sort' do these item have? Are you talking about /window -s and -S? If so, I'm not really following because these sort options are applied whenever a line is added.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #259902 09/02/17 01:24 PM
Joined: Dec 2002
Posts: 5,421
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,421
Yes, /window -s and -S, custom dialog lisboxes with sorting enabled, and so on.

Khaled #259910 10/02/17 09:21 AM
Joined: Jul 2006
Posts: 4,150
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
Ok, so all of these (window -sS and custom dialog listbox/combo) sort their content when content is added.
This to me, means that sorting again is never going to change the content.
If this is true, filter -a without a parameter is not doing anything confused


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard