Index: trunk/ippTools/share/pztool_pendingimfile.sql
===================================================================
--- trunk/ippTools/share/pztool_pendingimfile.sql	(revision 18172)
+++ trunk/ippTools/share/pztool_pendingimfile.sql	(revision 18203)
@@ -19,4 +19,4 @@
         AND pzDownloadImfile.class_id IS NULL
     ORDER BY
-        summitExp.dateobs
+        summitExp.dateobs DESC
 ) as Foo
Index: trunk/ippTools/src/pztool.c
===================================================================
--- trunk/ippTools/src/pztool.c	(revision 18172)
+++ trunk/ippTools/src/pztool.c	(revision 18203)
@@ -225,4 +225,6 @@
     }
 
+    psStringAppend(&query, " ORDER BY summitExp.dateobs DESC");
+
     // treat limit == 0 as "no limit"
     if (limit) {
@@ -295,4 +297,6 @@
             psFree(whereClause);
         }
+
+        psStringAppend(&query, " ORDERY BY summitExp.dateobs DESC");
 
         // request the full "limit" from each known camera and throw away any
