mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 4
M
MDBen Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Dec 2002
Posts: 4
I have a hash table with about 85 items. The item is normal text and the data for each item is a small number.

I need an efficient way to sort them out returning the top 5 highest numbers and the item name.

Thanx!

Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
qwerty has an excellent algorithm you can adapt; it can be found in this post.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard