On Wed, Feb 06, 2002 at 02:20:34PM -0600, Jeremy Blosser <[EMAIL PROTECTED]> wrote: > On Feb 06, Daniel Eisenbud [[EMAIL PROTECTED]] wrote: > > I've been planning to do this for a while. > > > > It seems to me that the only time that more than two levels of sorting > > is useful is when the first level is threads. If anyone can give me a > > plausible scenario where they'd want more than three, or more than two > > unthreaded, I'll think about my approach. But for the moment the right > > thing to do seems to be to break threading out into its own config > > variable. So you can set > > > > threads=forward > > threads=reverse > > or > > threads=off > > > > and then sort and sort_aux are what's used for secondary and tertiary > > sorting, or primary and secondary if threads=off. Make sense to people? > > Heh, I had the exact same thought reading this thread, so I certainly > concur. > > The only other possibility I was thinking of was trying to accomodate the > guy who wants all "Debian Weekly News [date]" sorted together. Date won't > do it, and subject won't do it. He could munge the subject in procmail, > but that's probably not desirable.
Subject will of course sort them all together, but he loses if he wants to then further sort them by score or date or whatever. I don't think that there's a reasonably good way to solve this in the sort code without bloat. Remember, limiting can be your friend: limit to the messages with the subject in question, and sort them by whatever you want (not including subject, since the only messages visible have the subjects you'd like to have sorted together.) Or save all your Debian Weekly News to a separate mailbox, and sort them by score and date there. I will point out that it's easy to add new sort methods to mutt now, and if we write mutt_qsort() it will be even easier, and it will be pretty easy, codewise, to have arbitrarily many levels of sorting. Maybe that's what we should do. But I'm not entirely sure that there's going to be a sort method that sorts the DWNs together and is generally useful enough to be included in mutt. Time for me to go find a copy of Knuth and write as efficient a qsort as possible, perhaps. -Daniel -- Daniel E. Eisenbud [EMAIL PROTECTED] "We should go forth on the shortest walk perchance, in the spirit of undying adventure, never to return,--prepared to send back our embalmed hearts only as relics to our desolate kingdoms." --Henry David Thoreau, "Walking"