mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2008
Posts: 16
M
MrUser Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Dec 2008
Posts: 16
hello
how can i change the hashtable in alphabetical order?


bye
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Hash tables are not meant to be used in that sort of way, so you can't.
What you *can* try to do is sort the .txt/.hsh file alphabetically before loading it.

Joined: Dec 2008
Posts: 16
M
MrUser Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Dec 2008
Posts: 16
thx i will try.


bye
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Sorting the file before loading it won't affect anything. There's simply no way to sort hash tables - it's an inherent property of how they work.

If you need a sorted data structure you could use either a file (slower to read/write, but can be as big as you need) or a sorted hidden window (fast, but limited size).


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

Link Copied to Clipboard