diff --git a/plugin/migrationmoodle/src/Loader/SortSectionModuleLoader.php b/plugin/migrationmoodle/src/Loader/SortSectionModuleLoader.php index 2418e58d41..60f49254f8 100644 --- a/plugin/migrationmoodle/src/Loader/SortSectionModuleLoader.php +++ b/plugin/migrationmoodle/src/Loader/SortSectionModuleLoader.php @@ -30,9 +30,7 @@ class SortSectionModuleLoader implements LoaderInterface TOOL_DOCUMENT, ], ], - 'order' => [ - 'iid' => 'ASC', - ], + 'order' => 'iid ASC', ], 'first' ); diff --git a/plugin/migrationmoodle/src/Loader/UsersScormsViewLoader.php b/plugin/migrationmoodle/src/Loader/UsersScormsViewLoader.php index 53360d82c2..a0ea6ecd54 100644 --- a/plugin/migrationmoodle/src/Loader/UsersScormsViewLoader.php +++ b/plugin/migrationmoodle/src/Loader/UsersScormsViewLoader.php @@ -110,9 +110,7 @@ class UsersScormsViewLoader implements LoaderInterface $sessionId, ], ], - 'order' => [ - 'view_count' => 'DESC', - ], + 'order' => 'view_count DESC', ], 'first' );