File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -428,6 +428,7 @@ public function siblings($dir = null)
428
428
429
429
default :
430
430
$ query = $ this ->newQuery ()
431
+ ->defaultOrder ()
431
432
->where ($ this ->getKeyName (), '<> ' , $ this ->getKey ());
432
433
433
434
break ;
@@ -947,7 +948,7 @@ public function getPrev(array $columns = array('*'))
947
948
*/
948
949
public function getAncestors (array $ columns = array ('* ' ))
949
950
{
950
- return $ this ->newQuery ()->ancestorsOf ($ this ->getKey (), $ columns );
951
+ return $ this ->newQuery ()->defaultOrder ()-> ancestorsOf ($ this ->getKey (), $ columns );
951
952
}
952
953
953
954
/**
@@ -959,7 +960,7 @@ public function getAncestors(array $columns = array('*'))
959
960
*/
960
961
public function getDescendants (array $ columns = array ('* ' ))
961
962
{
962
- return $ this ->newQuery ()->descendantsOf ($ this ->getKey (), $ columns );
963
+ return $ this ->newQuery ()->defaultOrder ()-> descendantsOf ($ this ->getKey (), $ columns );
963
964
}
964
965
965
966
/**
@@ -971,7 +972,7 @@ public function getDescendants(array $columns = array('*'))
971
972
*/
972
973
public function getSiblings (array $ columns = array ('* ' ))
973
974
{
974
- return $ this ->siblings ()->get ($ columns );
975
+ return $ this ->siblings ()->defaultOrder ()-> get ($ columns );
975
976
}
976
977
977
978
/**
You can’t perform that action at this time.
0 commit comments