diff --git a/atom b/atom index 8e2db2c..d141199 100755 --- a/atom +++ b/atom @@ -479,7 +479,8 @@ echo ' WHERE CAST(destination_files.last_change AS TEXT) <> CAST(source_files.last_change AS TEXT) AND mime_type_actions.destination_id = destinations.id - AND mime_type_actions.action = 1' >&3 + AND mime_type_actions.action = 1 + ORDER BY source_files.id' >&3 (( maxbatch )) && echo "LIMIT $maxbatch" >&3 echo '; SELECT "AtOM:NoMoreFiles";' >&3