change the oderBy from the usual last update to ID no. for media.
[mir.git] / source / mircoders / producer / ProducerMedia.java
index a44dc43..64546f6 100755 (executable)
@@ -38,7 +38,10 @@ abstract public class ProducerMedia extends Producer {
 
     int contentBatchsize =
             Integer.parseInt(MirConfig.getProp("Producer.Content.Batchsize"));
-    orderBy = "date desc, webdb_lastchange desc";
+    //orderBy = "date desc, webdb_lastchange desc";
+    // media should stay in uploaded order. this is especially important
+    // for photo stories which require a specific chronologic order.
+    orderBy = "id";
 
     // get batch of non-produced medias, that are to be published
     whereClause="is_published='1'";