+ Start a Discussion

batch data ordering (sorting)

If I want to process the records in a batch in some specific sequence, is it possible to do a sort and expect that SF will honor the sort.  For instance, suppose i have 10 records   sorted by date in ascending order.

Suppose I have a batch size of 1, will the records be passed to the execute batch method in ascending order one record at a time   or can salesforce change the order in which it passes the records to the execute batch method.