in reply to Sorting by Date Help!
$$a{submitted} <=> $$b{submitted};
<=> does numeric comparison, so your code will only compare by the first number in the string. Transform your data into a format like 08-02-28, then you can use simple string comparison to get correct date comparison.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sorting by Date Help!
by Anonymous Monk on Mar 17, 2009 at 18:48 UTC | |
by moritz (Cardinal) on Mar 17, 2009 at 18:56 UTC | |
by Anonymous Monk on Mar 17, 2009 at 19:08 UTC | |
by moritz (Cardinal) on Mar 17, 2009 at 19:11 UTC |