🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #131723

Re: [Xnews] Two questions on sorting

#131723
From: Joe McArthur
Date: Tue, 26 Aug 2003 04:01
98 lines
4186 bytes
Guy <Use-Reply-To-Address-Header@[127.1]> wrote in
news:93E21A0B09B412E284CEEC009E394A9D7@127.0.0.1: 

> Joe McArthur wrote:
> 
>> The assignable values for "SortOrder" do not appear to be defined
>> in any of the help files.  Nevertheless, I was able to turn up an
>> old post through Google, in which the author claimed that the
>> value "-1" should result in a descending sort.  However, When I
>> tried setting SortOrder to -1 in my Groups.ini file, for the
>> "Sent" folder, it had no effect.  Is -1 indeed the correct value
>> for a descending sort, and shouldn't it override the default value
>> of ascending (i.e. SortOrder=1), which is set in Xnews.ini? 
>> 
> 
> Hmm try this, it is what I use:
> 
> [Sent|Outbox]
> SortOn=Date
> SortOrder=-1
> OnLoaded=acvRemoveFilter+

I tried it, but it had no effect.  What is the '+' sign for (i.e. what 
does it mean, and what is it supposed to do), at the end of your 
acvRemoveFilter command?  Here is the relevant section of my groups.ini 
file (before I added the "OnLoaded=acvRemoveFilter+" line, as you 
suggested).  As you can see, I was already applying the Remove Filter 
command to the Sent folder, minus the '+' sign.

[^(Sent|Outbox|Saved|Archive)$]
OnLoaded=acaMarkAllUnread,acvRemoveFilter

[^(Sent)$]
; descending sort 
SortOn=Date
SortOrder=-1

Aha, I think I just figured out what I may be doing wrong.  Perhaps the 
second set of commands isn't getting evaluated because I don't have a 
"continue=1" line at the end of the first set of commands.  (time passes) 
Yep, that was it.  Problem solved.  :) 
 
> I did check this and it does override the Xnews.ini file setting.
> 
> OnLoaded you may or may not want/need. I do some OnLoaded in Xnews.ini
> file. 
> 
>> Second question ... is a double sort (i.e. sort on field1, within
>> field2) possible?  I tried placing the line:
>> "SortOn=Subject,Date", in my groups.ini, and also each one on a
>> separate line, but neither way worked as intended.
>> 
> There is limited "compound" sorting, let me see if I can find it...
> 
> Here I wrote(actually was quoted) this:
> 
> <http://groups.google.com/groups?as_umsgid=%3CXns93437D2811B7dcspamfree
> @oh11jvax13.eh135%3E> 
> 
> The OP wanted:
> 
>   >> to have xnews remember that I want the
>   >> post sorted by score and then dy date
> 
> So you may want to try:
> 
> In the Xnews.ini file:
> 
> [Display]section
> SortOn=Date
> SortOrder=-1
> 
> In the Groups.ini file:
> 
> [.]
> SortOn=Subject
> SortOrder=1
> 
> I did not try this first but I do use something similar for Queues:

Is the dot in "[.]" just a placeholder (i.e. a representation for 
"whatever I wish to place in this spot"), or am I to interpret it 
literally, as the regex meaning: "match all groups composed of (any) 
single character"?  Going with the former, I changed the dot to the group 
I wished to double sort on and low and behold ... I got a sort on 
Subject, irrespective of Date.  So it would seem that double sorting 
cannot be achieved.  Oh well.
 
> [_QUEUE.]
> SortOn=Group
> SortOrder=1
> 
> So what the hey.. whatever...
> 
> Bye

Bye, Joe
Technical Details
Message-ID: <Xns93E2D5CC33477ipdaily@130.133.1.4>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!0-2pool131-188.nas6.tempe1.az.us.da.qwest.NET!not-for-mail
References: <Xns93E1F327147E4ipdaily@130.133.1.4> <93E21A0B09B412E284CEEC009E394A9D7@127.0.0.1>

Show Full Headers
Complete Article Headers
Message-ID: <Xns93E2D5CC33477ipdaily@130.133.1.4>
Subject: Re: [Xnews] Two questions on sorting
Date: Mon, 25 Aug 2003 21:01:01 -0700
From: Joe McArthur <joemac@hotpop.spamblock.com>
References: <Xns93E1F327147E4ipdaily@130.133.1.4> <93E21A0B09B412E284CEEC009E394A9D7@127.0.0.1>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!0-2pool131-188.nas6.tempe1.az.us.da.qwest.NET!not-for-mail
Newsgroups: news.software.readers
Lines: 97
NNTP-Posting-Host: 0-2pool131-188.nas6.tempe1.az.us.da.qwest.net (67.3.131.188)
X-Trace: news.uni-berlin.de 1061870452 9055847 67.3.131.188 (16 [203971])
User-Agent: Xnews/5.04.25