http://www.perlmonks.org?node_id=379991


in reply to Sorting Question

If I understand what you mean, you can build a date string concatenating year, month and day. then you can sort it and split it back to year, month and day before printout.