It's been a bit of time since I last did any major mIRC scripting so please forgive me if this is an obvious question. But please indulge me to help me figure out the best method of doing this.

I have a bunch of individual files named after users (it's for a game, but that doesn't really matter). Inside each file is a whole bunch of ini sections (one for stats, one for location, one for this, one for that, etc etc etc, it's pretty massive already).

Now what I want to do is look at certain files (determined when something is started and active users use a certain command), take a certain value from each file, and then sort them from highest to lowest and make a single-lined list from it.

For example:

Steve 100
Bob 5
Tim 800
Cheeto 99


Then turn that into:

[InOrder]
List=Tim, Steve, Cheeto, Bob



I honestly can't think of a good way to do this in mIRC. In another programming language I would probably load them all into arrays (have the name and number in two columns) and then sort the number column. But in mIRC.. uhh what do I do? Every option I could think of might work if there's only one or two active users, but sometimes there's 10+.

Anyone have any solutions?