[comp.emacs] sorting by date

rcardena@hqpyr1.hqpyr1 (Ricardo A. Cardenas) (10/24/88)

Hi people,

I'm looking for a way to sort a buffer based on dates.  I looked at the
various sort functions provided, but there doesn't seem to be a way to
pass a date-sorting lambda to the sort-lines or sort-fields functions.
sort-columns also looks promising, but again, no dough.  I also looked
into call-process-region, but UNIX sort doesn't seem to be able to deal
with dates either.

So, anybody know of a way to sort the buffer's lines by the date in the
second field of each record?  Of course a generic set of sort-functions
would be best, as I want to use this so I can sort my RMAIL-summary
buffer in different ways.  An RMAIL-summary buffer looks like this:

    6  ??????                yluu@sun302  just a shipping reminder.....
    7D 21-Oct            jcuadros@hhintx  como estas peruano
    8  21-Oct                    kakomas  problem 41
    9  21-Oct                    kakomas  please teke a look at pb 47 in pts
   10  21-Oct                    kakomas  Comments on problem 48
   11  22-Oct                    kakomas  Problem with protections in pts

(Note "??????"'s should be dealt with somehow.)  Any help appreciated,
will summarize if people express interest.

Thanks,
Ricky

--
Ricardo Cardenas      // work: (415) 598-7536, home: 570-7523
Oracle International // Internet: rcardena%oracle@HPLABS.HP.COM
Belmont, California // also, mail forwarded by: cardenas%dagmar@Athena.MIT.EDU
USA - near Canada  //{{uunet,gatech,mit-eddie}!hplabs, pyramid}!oracle!rcardena