]> code.citadel.org Git - citadel.git/commitdiff
* Sort messages in reverse date order when no sort preference is set
authorArt Cancro <ajc@citadel.org>
Sat, 15 Oct 2005 04:44:16 +0000 (04:44 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 15 Oct 2005 04:44:16 +0000 (04:44 +0000)
* When going from non-date sort to date sort, try reverse order first

webcit/ChangeLog
webcit/messages.c

index e51ad843046020b56941e3e72489bd4e871982d9..a687cd32817970108ff6c9b31eaf00ce70fbefae 100644 (file)
@@ -1,3 +1,7 @@
+Sat Oct 15 00:43:17 EDT 2005 Art Cancro <ajc@uncensored.citadel.org>
+* Sort messages in reverse date order when no sort preference is set
+* When going from non-date sort to date sort, try reverse order first
+
 Sat Oct 15 00:28:35 EDT 2005 Art Cancro <ajc@uncensored.citadel.org>
 * Better handling of multiple recipients in reply-all
 
index cbccab274ac65ee50dbc1caf625fcd0be69154db..7af80c66c8767a87989ed7d168b92047b4aedf4e 100644 (file)
@@ -1803,7 +1803,7 @@ void readloop(char *oper)
                set_preference(sortpref_name, sortby, 1);
        }
        if (strlen(sortby) == 0) sortby = sortpref_value;
-       if (strlen(sortby) == 0) sortby = "msgid";
+       if (strlen(sortby) == 0) sortby = "rdate";
 
        output_headers(1, 1, 1, 0, 0, 0);
 
@@ -1963,7 +1963,7 @@ void readloop(char *oper)
                datesort_button = "<a href=\"/readfwd?startmsg=1?maxmsgs=9999999?summary=1?sortby=date\"><img border=\"0\" src=\"/static/up_pointer.gif\" /></a>" ;
        }
        else {
-               datesort_button = "<a href=\"/readfwd?startmsg=1?maxmsgs=9999999?summary=1?sortby=date\"><img border=\"0\" src=\"/static/sort_none.gif\" /></a>" ;
+               datesort_button = "<a href=\"/readfwd?startmsg=1?maxmsgs=9999999?summary=1?sortby=rdate\"><img border=\"0\" src=\"/static/sort_none.gif\" /></a>" ;
        }
 
        if (is_summary) {