diff --git a/src/Model/Behavior/SortableBehavior.php b/src/Model/Behavior/SortableBehavior.php
index <HASH>..<HASH> 100644
--- a/src/Model/Behavior/SortableBehavior.php
+++ b/src/Model/Behavior/SortableBehavior.php
@@ -44,14 +44,26 @@ class SortableBehavior extends Behavior
     public function restoreSorting(array $scope = []): void
     {
         $records = $this->_table->find()
-            ->select($this->_table->primaryKey(), $this->config('sortField'))
+            ->select([$this->_table->primaryKey(), $this->config('sortField')])
+            ->select($this->config('columnScope'))
             ->order($this->config('defaultOrder'));
+
         if (!empty($scope)) {
             $records->where($scope);
         }
 
+        $sorts = [];
         foreach ($records as $n => $entity) {
-            $sort = ($n + 1);
+            $individualScope = '';
+            foreach ($this->config('columnScope') as $column) {
+                $individualScope .= $entity->get($column);
+            }
+
+            if (!isset($sorts[$individualScope])) {
+                $sorts[$individualScope] = 0;
+            }
+
+            $sort = ++$sorts[$individualScope];
             $this->_table->updateAll([
                 $this->config('sortField') => $sort
             ], [
Fix restoreSorting to take columnScope into consideration