Skip to content

Commit 73e14ab

Browse files
author
Simon Karlen
committed
Prepend new tasks
1 parent ddd4e13 commit 73e14ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/models/Task.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ public function behaviors()
155155
],
156156
'sortable' => [
157157
'class' => ContinuousNumericalSortableBehavior::class,
158+
'prependAdded' => true,
158159
'sortAttribute' => 'sort',
159160
'scope' => function () {
160161
return Task::find()->where(['bucket_id' => $this->bucket_id]);

0 commit comments

Comments
 (0)