Some insertions that Meilisearch performs needs their order preserved. Currently grenad is not guaranteeing order preservation for operations on equal keys.
This PR adds the index of each source from the original arrays of sources. As sources are sorted by order of insertions, breaking ties on keys with that source index preserves operation order.
Pull Request
Related issue
Might help with https://github.com/meilisearch/meilisearch-support/issues/138 (internal link)
What does this PR do?