Add sorting for delete in Search\Index

This commit is contained in:
Visman 2023-09-19 20:36:33 +07:00
parent a2410a371a
commit e18280fbb0

View file

@ -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,