includes/log.php
changeset 947 f222643fb578
parent 918 1064e7e57eeb
child 980 d13fad911955
--- a/includes/log.php	Mon May 04 23:03:37 2009 -0400
+++ b/includes/log.php	Mon May 04 23:04:08 2009 -0400
@@ -156,7 +156,7 @@
     $sql = 'SELECT ' . $columns . ' FROM ' . table_prefix . "logs AS l\n"
          . "  WHERE log_type = 'page' AND is_draft != 1$where_extra\n"
          . "  GROUP BY log_id, action, page_id, namespace, page_text, author, time_id, edit_summary, minor_edit"
-         . "  ORDER BY log_id DESC $limit;";
+         . "  ORDER BY time_id DESC $limit;";
     
     return $sql;
   }