Thread View: news.software.readers
2 messages
2 total messages
Started by Joe McArthur
Mon, 25 Aug 2003 06:54
[Xnews] Two questions on sorting
Author: Joe McArthur
Date: Mon, 25 Aug 2003 06:54
Date: Mon, 25 Aug 2003 06:54
15 lines
1679 bytes
1679 bytes
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? 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. Joe
Re: [Xnews] Two questions on sorting
Author: Joe McArthur
Date: Tue, 26 Aug 2003 04:01
Date: Tue, 26 Aug 2003 04:01
98 lines
4186 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads