sort index: Try to catch broken sort_ids and recreate them correctly instead of assert-crashing.
sort index: Try to catch broken sort_ids and recreate them correctly instead
of assert-crashing.

Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot