int contentBatchsize =
Integer.parseInt(MirConfig.getProp("Producer.Content.Batchsize"));
- //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";
+ orderBy = "date desc, webdb_lastchange desc";
// get batch of non-produced medias, that are to be published
whereClause="is_published='1'";