[kw-pm] Sorting Question

Robert Pike roberthpike at yahoo.com
Thu Mar 10 10:32:04 PST 2011


What's the most efficient way to loop through a hash while sorting on it's values (as opposed to it's keys)? The values of the hash are (for arguments sake) "Person's name#Number assigned" (i.e. Tom Smith~101012). The names are variable length and I don't want anything including and after the tilde to be included in the sort (i.e. just the name strings). Any suggestions? Thanks.




More information about the kw-pm mailing list