Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
in such scenario i wanted id with has the end date come first. How can i sort the anonymous array?#key => id,start,end %hash ={ key1 => id1,2009/07/20-12-00-00-00,2009/07/20-15- + 00-00 key1 => id2,2009/07/20-15-10-00, key2 => id1,2009/07/21-12-00-00-00, };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sort hash values which is an array
by moritz (Cardinal) on Jul 21, 2009 at 13:28 UTC | |
|
Re: sort hash values which is an array
by JavaFan (Canon) on Jul 21, 2009 at 12:56 UTC | |
|
Re: sort hash values which is an array
by Anonymous Monk on Jul 21, 2009 at 12:59 UTC |