in reply to Shrink this sort subroutine

dude! as long as you 0 pad your numbers, a plain sort will work on those dates!

Update Sorry, just realized a plain sort won't quite work, but a simple hash sort should...
                - Ant

Replies are listed 'Best First'.
Re: Re: Shrink this sort subroutine
by donfreenut (Sexton) on Apr 24, 2001 at 22:33 UTC

    Um, unless I misunderstand your definition of 'zero pad,'I tried that first, and it didn't work. The numbers are already zero-padded to the YYYY-MM-DD HH:MM:SS format.

    Am I misinterpreting?

    ---
    donfreenut
      '2000-02-23 01:30:06' would be an example of zero padded... '2000-2-23 1:30:6 would be non zero padded
                      - Ant