]> lifelog.hopto.org Git - LifeLog.git/commitdiff
Time sort fix.
authorWill Budic <redacted>
Tue, 3 Mar 2020 06:57:20 +0000 (17:57 +1100)
committerWill Budic <redacted>
Tue, 3 Mar 2020 06:57:20 +0000 (17:57 +1100)
htdocs/cgi-bin/main.cgi

index d10868a6e8c39c69f8e7d10934f47da6a59b9467..714e182523fedde0df6843370a0bfd76e6a71935 100755 (executable)
@@ -383,7 +383,7 @@ qq(<form id="frm_log" action="data.cgi" onSubmit="return formDelValidation();">
     buildLog(traceDBExe($sqlVWL));
     #Following is saying is in page selection, not view selection, or accounting on type of sticky entries.
     if( !$isView && !$prm_vc  && !$prm_xc && !$rs_keys && !$rs_dat_from ){
-        $sqlVWL = "SELECT ID, ID_CAT, ID_RTF, DATE, LOG, AMOUNT, AFLAG, STICKY FROM VW_LOG WHERE STICKY != 1  ORDER BY DATE DESC LIMIT ".&Settings::viewAllLimit.";";
+        $sqlVWL = "SELECT ID, ID_CAT, ID_RTF, DATE, LOG, AMOUNT, AFLAG, STICKY FROM VW_LOG WHERE STICKY != 1 LIMIT ".&Settings::viewAllLimit.";";
         print $cgi->pre("###2 -> ".$sqlVWL)  if $DEBUG;
         ;
         &buildLog(traceDBExe($sqlVWL));