Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: sorting groups by month
       [not found] ` <w4d4qslxnub.fsf@nanni.riic.uni-linz.ac.at>
@ 2004-03-19 23:23   ` Michael Slass
  0 siblings, 0 replies; only message in thread
From: Michael Slass @ 2004-03-19 23:23 UTC (permalink / raw)


Stefan Reichör <xsteve@nit.at> writes:

>Hi Michael!
>
>> How do I get the school groups sorted by calendar order?
>
>You could rename them like this:
>nnml:school-sent-2003-01
>nnml:school-sent-2003-02
>nnml:school-sent-2003-03
>...
>
>or there is:
>gnus-group-sort-groups is an interactive compiled Lisp function in `gnus-group'.
>(gnus-group-sort-groups FUNC &optional REVERSE)
>
>Sort the group buffer according to FUNC.
>When used interactively, the sorting function used will be
>determined by the `gnus-group-sort-function' variable.
>If REVERSE (the prefix), reverse the sorting order.
>
>-- 
>Stefan.

Stefan:

I found gnus-group-sort-function in the docs, and it's set to
gnus-group-sort-by-alphabet, which doesn't explain why my regular
nnfolder+archive groups are sorted by month (not alphabet).

Since gnus-group-sort-by-alphabet operates on the group info

,----
| (defun gnus-group-sort-by-alphabet (info1 info2)
|   "Sort alphabetically."
|   (string< (gnus-info-group info1) (gnus-info-group info2)))
`----

I looked at the info for the groups which are being sorted correctly,
and there are no hints there.  I'd like to find out how that works,
and map it onto my school groups rather than rename them.

Any other ideas?

Thanks.

-- 
Mike Slass


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-19 23:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <m3oequcbrk.fsf@eric.rossnet.com>
     [not found] ` <w4d4qslxnub.fsf@nanni.riic.uni-linz.ac.at>
2004-03-19 23:23   ` sorting groups by month Michael Slass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).