Search in the list view, index is broken

When we search in the list view, the index does not disappear, but when we want to take the list part by section, the index is broken.
Is there a solution?
Or how can I link index with ID?