raflach has asked for the wisdom of the Perl Monks concerning the following question:
I need to sort an array of hashes based on the value of a particular key or keys of the hashes. I started to write my own function to do this, but quickly realized that
So can anyone point me to the already written function that will take a reference to an array of hashes, and 1 or more key names, and will sort the array based on those keys in that order? or possibly tell me what trick of perl I'm missing that makes this an extremely simple task?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sort Array of Hashes based on Hash value
by sean (Beadle) on Jun 07, 2000 at 03:36 UTC | |
by sean (Beadle) on Jun 07, 2000 at 05:05 UTC | |
by BBQ (Curate) on Jun 07, 2000 at 09:22 UTC | |
by buzzcutbuddha (Chaplain) on Jun 07, 2000 at 15:45 UTC | |
by raflach (Pilgrim) on Jun 07, 2000 at 03:54 UTC | |
|
Re: Sort Array of Hashes based on Hash value
by chromatic (Archbishop) on Jun 07, 2000 at 03:17 UTC | |
by raflach (Pilgrim) on Jun 07, 2000 at 03:50 UTC | |
|
RE: Sort Array of Hashes based on Hash value
by BigJoe (Curate) on Jun 07, 2000 at 03:24 UTC |