Here's what's probably a newbie syntax question...
I'm writing a script that sorts a hash of data from an XML file, with a line like so:
Say I want to sort by date or by size or some other criterion, based on some input. Can I replace "by_title" with some sort of variable so that it sorts by whatever method I want?