meilisearch / grenad

Tools to sort, merge, write, and read immutable key-value pairs :tomato:
https://docs.rs/grenad
MIT License
25 stars 3 forks source link

Ensure that the sorter keep the correct order of the values when merging #33

Closed Kerollmops closed 2 years ago

Kerollmops commented 2 years ago

This PR fixes a bug where we were not keeping the order of the values, this was not correct. I added a test to make sure that it will always be true in the future. I also bumped the patch version of the crate.

I checked and the test was correctly failing when I was using the sort_unstable_by function.