From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/18410 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: different thread sorting? Date: 07 Nov 1998 15:10:34 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035156939 6016 80.91.224.250 (20 Oct 2002 23:35:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:35:39 +0000 (UTC) Return-Path: Original-Received: from fisher.math.uh.edu (fisher.math.uh.edu [129.7.128.35]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id JAA08253 for ; Sat, 7 Nov 1998 09:16:52 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by fisher.math.uh.edu (8.9.1/8.9.1) with ESMTP id IAB16923; Sat, 7 Nov 1998 08:16:42 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 07 Nov 1998 08:16:26 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [209.195.19.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id IAA23278 for ; Sat, 7 Nov 1998 08:15:53 -0600 (CST) Original-Received: from sparky.gnus.org (ppp032.uio.no [129.240.240.33]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id JAA08205 for ; Sat, 7 Nov 1998 09:15:45 -0500 (EST) Original-Received: (from larsi@localhost) by sparky.gnus.org (8.8.5/8.8.5) id PAA18628; Sat, 7 Nov 1998 15:16:14 +0100 Mail-Copies-To: never X-Now-Reading: Ursula K. Le Guin & Virginia Kidd (ed.)'s _Interfaces_ X-Now-Playing: Massive Attack's _Blue Lines_ Original-To: ding@gnus.org In-Reply-To: Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "02 Nov 1998 17:19:04 +0100" User-Agent: Gnus/5.070041 (Pterodactyl Gnus v0.41) Emacs/20.3 X-Face: &w!^oO~dS|}-P0~ge{$c!h\ Current behavior: > Thread A is sorted before thread B if the OLDEST article in A is older > than the OLDEST article in B. That's almost right -- the threads are sorted on the thread root. This is the oldest article in most cases, but in some weird cases, it's not. > Desired behavior: > Thread A is sorted before thread B if the NEWEST article in A is older > than the NEWEST article in B. > > Of course, this behavior should be optional. > > What has become of this issue? I haven't done anything about it. Implementing it shouldn't be too difficult, I think -- one should write a function that descends the thread tree and returns the header of the newest article, and then just sort the threads using a function that would look like: (defun gnus-thread-sort-by-newest-date (h1 h2) "Sort threads by root article date." (gnus-article-sort-by-date (gnus-newest-article-in-thread h1) (gnus-newest-article-in-thread h2))) Writing `gnus-newest-article-in-thread' is left as an exercise for the reader. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen