Hi! I want to sort a number of File::Stat object due to the user's choice. [Anyway, can I read back the filename from the Stat object?] My idea was to build a hash, keys are 'name', 'size', ... and values are proc objects doing the comparism. Then I just can write. userChoice='size' myArray.sort(sortMethods[userChoice]) But I don't know the correct syntax. I'm still using ruby1.6, if it matters. +-[Kontra, Gergely @ Budapest University of Technology and Economics]-+ | Email: kgergely / mcl.hu, kgergely / turul.eet.bme.hu | | URL: turul.eet.bme.hu/~kgergely Mobile: (+36 20) 356 9656 | +-------"Olyan langesz vagyok, hogy poroltoval kellene jarnom!"-------+ . Magyar php mirror es magyar php dokumentacio: http://hu.php.net