in reply to Re: Re: Sorting a slurped file by a date field
in thread Sorting a slurped file by a date field

Thanks, that's a lot clearer. To sort in descending order, simply replace $a with $b and $b with $a; e.g. in place of { $a->[3] <=> $b->[3] }, use { $b->[3] <=> $a->[3] }.

I hope your $created's are actual numbers, not strings as you show. If you actually have strings in your data, you are going to have to parse them further, since they won't be easily comparable as is.

Replies are listed 'Best First'.
Re: Re: Re: Re: Sorting a slurped file by a date field
by bionicle32 (Novice) on Feb 04, 2004 at 21:25 UTC
    They are strings like I showed in the example you responded too. Is it possible that you could further explain how I would parse them to get the dates sorted in the correct order?

    Thanks,
    Bionicle32