File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -293,14 +293,14 @@ protected function generateFixtureTree(): void
293293 */
294294 protected function getDataSet (): array
295295 {
296- $ dataSetTree = Tree::find ()->asArray ()->all ();
296+ $ dataSetTree = Tree::find ()->orderBy ([ ' id ' => SORT_ASC ])-> asArray ()->all ();
297297
298298 foreach ($ dataSetTree as $ key => $ value ) {
299299 $ dataSetTree [$ key ]['type ' ] = 'tree ' ;
300300 $ dataSetTree [$ key ]['tree ' ] = 0 ;
301301 }
302302
303- $ dataSetMultipleTree = MultipleTree::find ()->asArray ()->all ();
303+ $ dataSetMultipleTree = MultipleTree::find ()->orderBy ([ ' id ' => SORT_ASC ])-> asArray ()->all ();
304304
305305 foreach ($ dataSetMultipleTree as $ key => $ value ) {
306306 $ dataSetMultipleTree [$ key ]['type ' ] = 'multiple_tree ' ;
@@ -316,7 +316,7 @@ protected function getDataSet(): array
316316 */
317317 protected function getDataSetMultipleTree (): array
318318 {
319- $ dataSetMultipleTree = MultipleTree::find ()->asArray ()->all ();
319+ $ dataSetMultipleTree = MultipleTree::find ()->orderBy ([ ' id ' => SORT_ASC ])-> asArray ()->all ();
320320
321321 foreach ($ dataSetMultipleTree as $ key => $ value ) {
322322 $ dataSetMultipleTree [$ key ]['type ' ] = 'multiple_tree ' ;
You can’t perform that action at this time.
0 commit comments