[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] sorting algorithms



given a data-set of the form:


$master_maps_list{$gametype}{lc($title)} = [$filename, $title, $size,
$review, $rating];


how do I sort this data by $size and then by $filename/$title for the subset
of one of the five $gametype's ?

the cgi is running at
http://www.magpage.com/~sgodin/cgi-scripts/ncrp/ncmapslist.cgi if you want a
peek a what the output looks like normally.

basically, for a single gametype, I'd like to optionally sort the maplist
for that gametype first by rating, and second by filename or title, so that
all the n-rated maps are sorted alphabetically instead of arbitrarily.

I can attach a stuffed copy of the script for anyone that needs a clearer
look before making an assessment.

Any pointers to a web tute for this sort of sorting would be appreciated.

constructive suggestions appreciated to x^nth degree.

I've looked at perlfaq4 but cannot yet 'visualize' what is necessary to do
the job. 


# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org