Browse Source

Add sorting for delete in Search\Index

Visman 1 year ago
parent
commit
e18280fbb0
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/Models/Search/Index.php

+ 4 - 0
app/Models/Search/Index.php

@@ -106,6 +106,10 @@ class Index extends Method
                 continue;
                 continue;
             }
             }
 
 
+            if (\count($list) > 1) {
+                \sort($list, \SORT_NUMERIC);
+            }
+
             $vars = [
             $vars = [
                 ':pid'  => $post->id,
                 ':pid'  => $post->id,
                 ':subj' => 's' === $key ? 1 : 0,
                 ':subj' => 's' === $key ? 1 : 0,