Skip to content

Commit a4488db

Browse files
committed
Apply default order with next()
1 parent 6785864 commit a4488db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Kalnoy/Nestedset/Node.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ public function prevSiblings()
146146
public function next()
147147
{
148148
return $this->newQuery()
149-
->where(static::LFT, '>', $this->attributes[static::LFT]);
149+
->where(static::LFT, '>', $this->attributes[static::LFT])
150+
->defaultOrder();
150151
}
151152

152153
/**

0 commit comments

Comments
 (0)