-
Sub-task
-
Resolution: Fixed
-
Major
-
2.1.4, 2.2.1, 2.3.4, 2.4.1, 2.5
-
Any
-
MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_25_STABLE
-
-
There are several places where the order of data in a backup is important, but is not necessarily enforced. These cases are difficult to track down because the natural return order of the content tends to match the insert order, and thus the id for a majority of the time.
The attached patch enforces a sort order on the 'id' field which should satisfy a majority of cases.
Where this is insufficient, it's possible to supply the sortby field to the set_source_table() function call.