Selaa lähdekoodia

Add sorting for delete in Search\Index

Visman 1 vuosi sitten
vanhempi
commit
e18280fbb0
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      app/Models/Search/Index.php

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

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